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, writeVLong
public void writeTo(OutputStream out) throws IOException
IOException
public void reset()
public void flushBuffer(byte[] src, int len)
OutputStream
flushBuffer
in class OutputStream
src
- the bytes to writelen
- the number of bytes to writepublic void close() throws IOException
OutputStream
close
in class OutputStream
IOException
public void seek(long pos) throws IOException
OutputStream
seek
in class OutputStream
IOException
OutputStream.getFilePointer()
public long length()
OutputStream
length
in class OutputStream
Copyright © 2024 GATE. All rights reserved.