Class BinsciiEncoderDecoder

java.lang.Object
org.applecommander.archive.binscii.BinsciiEncoderDecoder

public class BinsciiEncoderDecoder extends Object
The BinSCII encode/decoder handles an individual line of data.
  • Field Details

  • Constructor Details

  • Method Details

    • decode

      public DataBuffer decode(String encodedText) throws IOException
      Decode a line of text into the associated data. Note that input is a multiple of 4 while the output is a multiple of 3.
      Throws:
      IOException
    • encode

      public String encode(DataBuffer data) throws IOException
      Encode data into the textual representation. Input is forced to be a muliple of 3 while the output is a multiple of 4.
      Throws:
      IOException