Class StringPrepDataReader

    • Constructor Detail

      • StringPrepDataReader

        public StringPrepDataReader​(java.io.InputStream inputStream)
                             throws java.io.IOException

        private constructor.

        Parameters:
        inputStream - ICU uprop.dat file input stream
        Throws:
        java.io.IOException - throw if data file fails authentication
    • Method Detail

      • read

        public void read​(byte[] idnaBytes,
                         char[] mappingTable)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getDataFormatVersion

        public byte[] getDataFormatVersion()
      • isDataVersionAcceptable

        public boolean isDataVersionAcceptable​(byte[] version)
        Description copied from interface: ICUBinary.Authenticate
        Method used in ICUBinary.readHeader() to provide data format authentication.
        Specified by:
        isDataVersionAcceptable in interface ICUBinary.Authenticate
        Parameters:
        version - version of the current data
        Returns:
        true if dataformat is an acceptable version, false otherwise
      • readIndexes

        public int[] readIndexes​(int length)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getUnicodeVersion

        public byte[] getUnicodeVersion()