Class MemoryInputStream

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

    public class MemoryInputStream
    extends RebufferingInputStream
    implements java.io.DataInput
    • Constructor Detail

      • MemoryInputStream

        public MemoryInputStream​(Memory mem)
      • MemoryInputStream

        public MemoryInputStream​(Memory mem,
                                 int bufferSize)
    • Method Detail

      • reBuffer

        protected void reBuffer()
                         throws java.io.IOException
        Description copied from class: RebufferingInputStream
        Implementations must implement this method to refill the buffer. They can expect the buffer to be empty when this method is invoked.
        Specified by:
        reBuffer in class RebufferingInputStream
        Throws:
        java.io.IOException
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream