org.jcp.xml.dsig.internal.dom

Class Utils

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


  • public final class Utils
    extends java.lang.Object
    Miscellaneous static utility methods for use in JSR 105 RI.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String parseIdFromSameDocumentURI(java.lang.String uri)
      Returns the ID from a same-document URI (ex: "#id")
      static byte[] readBytesFromStream(java.io.InputStream is) 
      static boolean sameDocumentURI(java.lang.String uri)
      Returns true if uri is a same-document URI, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • readBytesFromStream

        public static byte[] readBytesFromStream(java.io.InputStream is)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseIdFromSameDocumentURI

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

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

© Portions Copyright 2003, 2014 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.