java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.Utils

public final class Utils extends Object
Miscellaneous static utility methods for use in JSR 105 RI.
  • Constructor Details

    • Utils

      private Utils()
  • Method Details

    • readBytesFromStream

      public static byte[] readBytesFromStream(InputStream is) throws IOException
      Throws:
      IOException
    • toNodeSet

      static Set<Node> toNodeSet(Iterator<Node> i)
      Converts an Iterator to a Set of Nodes, according to the XPath Data Model.
      Parameters:
      i - the Iterator
      Returns:
      the Set of Nodes
    • parseIdFromSameDocumentURI

      public static String parseIdFromSameDocumentURI(String uri)
      Returns the ID from a same-document URI (ex: "#id")
    • sameDocumentURI

      public static boolean sameDocumentURI(String uri)
      Returns true if uri is a same-document URI, false otherwise.
    • secureValidation

      static boolean secureValidation(XMLCryptoContext xc)
    • getBoolean

      private static boolean getBoolean(XMLCryptoContext xc, String name)