public class WriteStreamOutput extends java.io.OutputStream implements BinaryOutput
SEEK_CUR, SEEK_END, SEEK_SET| Constructor and Description |
|---|
WriteStreamOutput(java.io.OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
closeWrite()
Closes the stream for writing
|
void |
flush()
Flushes the output
|
java.io.OutputStream |
getOutputStream()
Returns the input stream.
|
long |
getPosition()
Tells the position in the stream.
|
java.lang.String |
getResourceType() |
boolean |
isEOF()
Returns true if end-of-file has been reached
|
void |
print(char ch)
prints a unicode character
|
void |
print(java.lang.String s)
prints
|
long |
seek(long offset,
int whence)
Seek according to offset and whence.
|
boolean |
setPosition(long offset)
Sets the current position in the stream.
|
Value |
stat()
Returns an array filled with stat information.
|
java.lang.Object |
toJavaObject() |
java.lang.String |
toString()
Converts to a string.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer.
|
int |
write(java.io.InputStream is,
int length)
Writes a buffer.
|
void |
write(int ch) |
public java.io.OutputStream getOutputStream()
getOutputStream in interface BinaryOutputpublic java.lang.Object toJavaObject()
public java.lang.String getResourceType()
public void write(int ch)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
BinaryOutputwrite in interface BinaryOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void closeWrite()
BinaryOutputcloseWrite in interface BinaryOutputpublic void print(char ch)
throws java.io.IOException
BinaryOutputprint in interface BinaryOutputjava.io.IOExceptionpublic void print(java.lang.String s)
throws java.io.IOException
BinaryOutputprint in interface BinaryOutputjava.io.IOExceptionpublic int write(java.io.InputStream is,
int length)
throws java.io.IOException
BinaryOutputwrite in interface BinaryOutputjava.io.IOExceptionpublic long getPosition()
BinaryStreamgetPosition in interface BinaryStreampublic boolean isEOF()
BinaryStreamisEOF in interface BinaryStreampublic long seek(long offset,
int whence)
BinaryStreamseek in interface BinaryStreampublic boolean setPosition(long offset)
BinaryStreamsetPosition in interface BinaryStreampublic Value stat()
BinaryStreamstat in interface BinaryStreampublic void flush()
BinaryOutputflush in interface BinaryOutputflush in interface java.io.Flushableflush in class java.io.OutputStreampublic void close()
BinaryOutputclose in interface BinaryOutputclose in interface BinaryStreamclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreampublic java.lang.String toString()
toString in class java.lang.Object