Class InputFile

java.lang.Object
com.ibm.icu.dev.tool.charsetdet.sbcs.InputFile
All Implemented Interfaces:
NGramList.NGramKeyMapper

public class InputFile extends Object implements NGramList.NGramKeyMapper
  • Field Details

  • Constructor Details

    • InputFile

      public InputFile(String filename, String encoding, boolean visual)
  • Method Details

    • exceptionError

      private static void exceptionError(Exception e)
    • open

      public boolean open()
    • close

      public void close()
    • getFilename

      public String getFilename()
    • getParent

      public String getParent()
    • getPath

      public String getPath()
    • read

      public int read(char[] buffer)
    • setEncoding

      public void setEncoding(String encoding)
    • getEncoding

      public String getEncoding()
    • getVisualOrder

      public boolean getVisualOrder()
    • mapKey

      public Object mapKey(String key)
      Specified by:
      mapKey in interface NGramList.NGramKeyMapper
    • encode

      public byte[] encode(char[] chars)
    • decode

      public char[] decode(byte[] bytes)