public class RAMOutputStream extends OutputStream
OutputStream implementation.| Constructor and Description |
|---|
RAMOutputStream()
Construct an empty output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream to further operations.
|
void |
flushBuffer(byte[] src,
int len)
Expert: implements buffer write.
|
long |
length()
The number of bytes in the file.
|
void |
reset()
Resets this to an empty buffer.
|
void |
seek(long pos)
Sets current position in this file, where the next write will occur.
|
void |
writeTo(OutputStream out)
Copy the current contents of this buffer to the named output.
|
flush, getFilePointer, writeByte, writeBytes, writeChars, writeInt, writeLong, writeString, writeVInt, writeVLongpublic void writeTo(OutputStream out) throws IOException
IOExceptionpublic void reset()
public void flushBuffer(byte[] src,
int len)
OutputStreamflushBuffer in class OutputStreamsrc - the bytes to writelen - the number of bytes to writepublic void close()
throws IOException
OutputStreamclose in class OutputStreamIOExceptionpublic void seek(long pos)
throws IOException
OutputStreamseek in class OutputStreamIOExceptionOutputStream.getFilePointer()public long length()
OutputStreamlength in class OutputStreamCopyright © 2024 GATE. All rights reserved.