Class BinaryToRawStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    AutoPositioningStream

    class BinaryToRawStream
    extends java.io.FilterInputStream
    Converts a stream containing the Derby stored binary form to one that just contains the application's data. Simply read and save the length information.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int length
      Length of the value represented by this stream.
      private java.lang.Object parent  
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryToRawStream​(java.io.InputStream in, java.lang.Object parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getLength()
      Return the length of the value in thie stream in bytes.
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • length

        private int length
        Length of the value represented by this stream. Set to -1 if the length is unknown.
      • parent

        private java.lang.Object parent
    • Constructor Detail

      • BinaryToRawStream

        BinaryToRawStream​(java.io.InputStream in,
                          java.lang.Object parent)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getLength

        int getLength()
        Return the length of the value in thie stream in bytes. If the value is unknown then -1 is returned.