Class StringPrepDataReader

java.lang.Object
com.adobe.agl.impl.StringPrepDataReader
All Implemented Interfaces:
ICUBinary.Authenticate

public final class StringPrepDataReader extends Object implements ICUBinary.Authenticate
  • Constructor Details

    • StringPrepDataReader

      public StringPrepDataReader(InputStream inputStream) throws IOException

      private constructor.

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

    • read

      public void read(byte[] idnaBytes, char[] mappingTable) throws IOException
      Throws:
      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 IOException
      Throws:
      IOException
    • getUnicodeVersion

      public byte[] getUnicodeVersion()