sleep.bridges.io
Class BufferObject
public class BufferObject
The buffer works as follows. Once allocated it is open for writing. When the scripter chooses to
close the buffer it is then available for reading. The second time it is closed all of its resources
are deallocated.
protected ByteArrayInputStream | readme - The readable source for this IO object
|
protected ByteArrayOutputStream | source - The writeable source for this IO object
|
void | allocate(int initialSize) - allocates a writeable buffer with the specified initial capacity
|
void | close() - handles our closing semantices i.e.
|
Object | getSource() - returns the stream referenced by this IOObject
|
close , getBuffer , getConsole , getInputBuffer , getInputStream , getOutputStream , getReader , getSource , getThread , getToken , getWriter , isEOF , openRead , openWrite , print , printLine , readCharacter , readLine , sendEOF , setEncoding , setThread , setToken , wait |
readme
protected ByteArrayInputStream readme
The readable source for this IO object
source
protected ByteArrayOutputStream source
The writeable source for this IO object
allocate
public void allocate(int initialSize)
allocates a writeable buffer with the specified initial capacity
close
public void close()
handles our closing semantices i.e. first time it is called the writeable portion is opened
up for reading and the second time all resources are deallocated
- close in interface IOObject
getSource
public Object getSource()
returns the stream referenced by this IOObject
- getSource in interface IOObject