Interface AQFileWriter

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    public interface AQFileWriter
    extends java.io.Closeable
    An instance of this interface, available via aqua.io.newFileWriter(), can be used to write binary data to a file.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setFile​(java.lang.String filename)
      Sets output file name.
      void write​(byte[] data)
      Writes byte array to a file.
      void write​(int data)
      Writes a single byte to a file.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • setFile

        void setFile​(java.lang.String filename)
        Sets output file name.
        Parameters:
        filename - File name.
      • write

        void write​(int data)
            throws java.lang.Exception
        Writes a single byte to a file.
        Parameters:
        data - the data
        Throws:
        java.lang.Exception - On Error
      • write

        void write​(byte[] data)
            throws java.lang.Exception
        Writes byte array to a file.
        Parameters:
        data - the data
        Throws:
        java.lang.Exception - On Error