Package zombie.util

Class ByteBufferBackedInputStream

java.lang.Object
java.io.InputStream
zombie.util.ByteBufferBackedInputStream
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class ByteBufferBackedInputStream
extends java.io.InputStream
  • Constructor Summary

    Constructors
    Constructor Description
    ByteBufferBackedInputStream​(java.nio.ByteBuffer byteBuffer)  
  • Method Summary

    Modifier and Type Method Description
    int read()  
    int read​(byte[] byteArray, int int1, int int2)  

    Methods inherited from class java.io.InputStream

    available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ByteBufferBackedInputStream

      public ByteBufferBackedInputStream​(java.nio.ByteBuffer byteBuffer)
  • Method Details

    • read

      public int read() throws java.io.IOException
      Specified by:
      read in class java.io.InputStream
      Throws:
      java.io.IOException
    • read

      public int read​(byte[] byteArray, int int1, int int2) throws java.io.IOException
      Overrides:
      read in class java.io.InputStream
      Throws:
      java.io.IOException