Class BinaryFileWriter

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

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

    Constructors 
    Constructor Description
    BinaryFileWriter​(java.io.BufferedOutputStream stream)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void write​(byte[] buffer)  

    Methods inherited from class java.lang.Object

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

    • BinaryFileWriter

      public BinaryFileWriter​(java.io.BufferedOutputStream stream)
  • 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
    • write

      public void write​(byte[] buffer) throws java.io.IOException
      Throws:
      java.io.IOException