Package org.fressian

Class FressianReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Reader

    public class FressianReader
    extends java.lang.Object
    implements Reader, java.io.Closeable
    • Field Detail

      • standardExtensionHandlers

        public final java.util.Map standardExtensionHandlers
      • coreHandlers

        public static final java.util.Map coreHandlers
    • Constructor Detail

      • FressianReader

        public FressianReader​(java.io.InputStream is)
      • FressianReader

        public FressianReader​(java.io.InputStream is,
                              ILookup<java.lang.Object,​ReadHandler> handlerLookup)
      • FressianReader

        public FressianReader​(java.io.InputStream is,
                              ILookup<java.lang.Object,​ReadHandler> handlerLookup,
                              boolean validateAdler)
    • Method Detail

      • readBoolean

        public boolean readBoolean()
                            throws java.io.IOException
        Specified by:
        readBoolean in interface Reader
        Throws:
        java.io.IOException
      • readInt

        public long readInt()
                     throws java.io.IOException
        Specified by:
        readInt in interface Reader
        Throws:
        java.io.IOException
      • readDouble

        public double readDouble()
                          throws java.io.IOException
        Specified by:
        readDouble in interface Reader
        Throws:
        java.io.IOException
      • readFloat

        public float readFloat()
                        throws java.io.IOException
        Specified by:
        readFloat in interface Reader
        Throws:
        java.io.IOException
      • readObject

        public java.lang.Object readObject()
                                    throws java.io.IOException
        Specified by:
        readObject in interface Reader
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • validateFooter

        public void validateFooter()
                            throws java.io.IOException
        Specified by:
        validateFooter in interface Reader
        Throws:
        java.io.IOException