Interface Stream

A parent interface for all stream types

interface Stream
  : Seekable ;

Properties

NameTypeDescription
getPosition[get] ulongReturns current position

Methods

NameDescription
close () Closes the stream. Closed stream cannot be read or written any more
seekable () Returns true if it is legal to use Seekable functionality on this stream
position (pos) Attempts to set current position to pos. Throws SeekException on failure
seek (amount) Relatively changes position. amount defines an offset from the current position (can be negative). Throws SeekException on failure
setPosition (pos) Attempts to set current position to pos. Returns true on success, false on failure
size () Returns the size of a stream in bytes