Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BinaryStream

Hierarchy

  • BinaryStream

Index

Constructors

Constructors

constructor

  • Creates a new BinaryStream object.

    var readstream = new BinaryStream( 'PROJECT/logs/HTTPServer.waLog' );
    console.log( '[chunck] '+ readstream.getBuffer(1000).toString() );
    // Important to close the stream after every use to release the referenced file
    readstream.close();

    Parameters

    • binary: String

      Describes the binary to read/write.

    • Optional readMode: String

      (default: read) Write if in write mode, Read otherwise.

    Returns WAKBinaryStreamInstance

  • Creates a new BinaryStream object.

    var myFile = new File( 'PROJECT/logs/HTTPServer.waLog' );
    var readstream = new BinaryStream( myFile );
    console.log( '[chunck] '+ readstream.getBuffer(1000).toString() );
    // Important to close the stream after every use to release the referenced file
    readstream.close();

    Parameters

    • binary: WAKFileInstance

      Describes the binary to read/write.

    • Optional readMode: String

      (default: read) Write if in write mode, Read otherwise.

    Returns WAKBinaryStreamInstance