|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsleep.bridges.io.IOObject
sleep.bridges.io.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.
Field Summary | |
---|---|
protected java.io.ByteArrayInputStream |
readme
The readable source for this IO object |
protected java.io.ByteArrayOutputStream |
source
The writeable source for this IO object |
Fields inherited from class sleep.bridges.io.IOObject |
---|
buffer, in, out, reader, readerb, readeru, thread, token, writerb, writeru |
Constructor Summary | |
---|---|
BufferObject()
|
Method Summary | |
---|---|
void |
allocate(int initialSize)
allocates a writeable buffer with the specified initial capacity |
void |
close()
handles our closing semantices i.e. |
java.lang.Object |
getSource()
returns the stream referenced by this IOObject |
Methods inherited from class sleep.bridges.io.IOObject |
---|
getBuffer, getConsole, getInputBuffer, getInputStream, getOutputStream, getReader, getThread, getToken, getWriter, isEOF, openRead, openWrite, print, printLine, readCharacter, readLine, sendEOF, setEncoding, setThread, setToken, wait |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.ByteArrayOutputStream source
protected java.io.ByteArrayInputStream readme
Constructor Detail |
---|
public BufferObject()
Method Detail |
---|
public java.lang.Object getSource()
getSource
in class IOObject
public void close()
close
in class IOObject
public void allocate(int initialSize)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |