Class ObjectStream.SmallStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Enclosing class:

    public static class ObjectStream.SmallStream
    extends ObjectStream
    Simple stream around the cached byte array created by a loader.

    ObjectLoader implementations can use this stream type when the object's content is small enough to be accessed as a single byte array, but the application has still requested it in stream format.

    • Constructor Detail

      • SmallStream

        public SmallStream​(ObjectLoader loader)
        Create the stream from an existing loader's cached bytes.
        loader - the loader.
      • SmallStream

        public SmallStream​(int type,
                           byte[] data)
        Create the stream from an existing byte array and type.
        type - the type constant for the object.
        data - the fully inflated content of the object.