Interface FSTDecoder

All Known Implementing Classes:
FSTBytezDecoder, FSTJsonDecoder, FSTMinBinDecoder, FSTStreamDecoder

public interface FSTDecoder
Created by ruedi on 27.03.14.
  • Method Details

    • setConf

      void setConf​(FSTConfiguration conf)
    • readStringUTF

      java.lang.String readStringUTF() throws java.io.IOException
      Throws:
      java.io.IOException
    • readStringAsc

      java.lang.String readStringAsc() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFPrimitiveArray

      java.lang.Object readFPrimitiveArray​(java.lang.Object array, java.lang.Class componentType, int len)
    • readFIntArr

      void readFIntArr​(int len, int[] arr) throws java.io.IOException
      Throws:
      java.io.IOException
    • readFInt

      int readFInt() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFDouble

      double readFDouble() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFFloat

      float readFFloat() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFByte

      byte readFByte() throws java.io.IOException
      Throws:
      java.io.IOException
    • readIntByte

      int readIntByte() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFLong

      long readFLong() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFChar

      char readFChar() throws java.io.IOException
      Throws:
      java.io.IOException
    • readFShort

      short readFShort() throws java.io.IOException
      Throws:
      java.io.IOException
    • readPlainInt

      int readPlainInt() throws java.io.IOException
      Throws:
      java.io.IOException
    • getBuffer

      byte[] getBuffer()
    • getInputPos

      int getInputPos()
    • moveTo

      void moveTo​(int position)
    • setInputStream

      void setInputStream​(java.io.InputStream in)
    • ensureReadAhead

      int ensureReadAhead​(int bytes)
    • reset

      void reset()
    • resetToCopyOf

      void resetToCopyOf​(byte[] bytes, int off, int len)
    • resetWith

      void resetWith​(byte[] bytes, int len)
    • readClass

      FSTClazzInfo readClass() throws java.io.IOException, java.lang.ClassNotFoundException
      Throws:
      java.io.IOException
      java.lang.ClassNotFoundException
    • classForName

      java.lang.Class classForName​(java.lang.String name) throws java.lang.ClassNotFoundException
      Throws:
      java.lang.ClassNotFoundException
    • registerClass

      void registerClass​(java.lang.Class possible)
    • close

      void close()
    • skip

      void skip​(int n)
    • readPlainBytes

      void readPlainBytes​(byte[] b, int off, int len)
    • readObjectHeaderTag

      byte readObjectHeaderTag() throws java.io.IOException
      Throws:
      java.io.IOException
    • getObjectHeaderLen

      int getObjectHeaderLen()
    • isMapBased

      boolean isMapBased()
    • getDirectObject

      java.lang.Object getDirectObject()
    • consumeEndMarker

      void consumeEndMarker()
    • readArrayHeader

      java.lang.Object readArrayHeader() throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.Exception
      Throws:
      java.io.IOException
      java.lang.ClassNotFoundException
      java.lang.Exception
    • readExternalEnd

      void readExternalEnd()
    • isEndMarker

      boolean isEndMarker​(java.lang.String s)
    • readVersionTag

      int readVersionTag() throws java.io.IOException
      Throws:
      java.io.IOException
    • pushBack

      void pushBack​(int bytes)
    • readArrayEnd

      void readArrayEnd​(FSTClazzInfo clzSerInfo)
    • readObjectEnd

      void readObjectEnd()
    • coerceElement

      java.lang.Object coerceElement​(java.lang.Class arrType, java.lang.Object value)
    • available

      int available()
      Returns:
      a value > 0 if more bytes are available
    • inArray

      boolean inArray()
      return wether current stream is reading an object or sequence currently makes sense for MinBin and JSon only, only Json serializer actually has implemented it
      Returns:
    • startFieldReading

      void startFieldReading​(java.lang.Object newObj)
      quirks for json unknown decoding. Need a hook to set original classname only called when reading named fields
      Parameters:
      newObj -
    • endFieldReading

      void endFieldReading​(java.lang.Object newObj)
      only called when reading named fields
      Parameters:
      newObj -