Class BinaryFileReader

java.lang.Object
com.scriptbasic.utility.functions.file.BinaryFileReader
All Implemented Interfaces:
NoAccess, FileHandler, java.lang.AutoCloseable

public class BinaryFileReader
extends java.lang.Object
implements FileHandler, java.lang.AutoCloseable
  • Constructor Summary

    Constructors 
    Constructor Description
    BinaryFileReader​(java.io.InputStream stream)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    byte[] read​(int len)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • close

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

      public byte[] read​(int len) throws java.io.IOException
      Throws:
      java.io.IOException