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 BinaryOutput
public java.lang.Object toJavaObject()
public java.lang.String getResourceType()
public void write(int ch) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
BinaryOutput
write
in interface BinaryOutput
write
in class java.io.OutputStream
java.io.IOException
public void closeWrite()
BinaryOutput
closeWrite
in interface BinaryOutput
public void print(char ch) throws java.io.IOException
BinaryOutput
print
in interface BinaryOutput
java.io.IOException
public void print(java.lang.String s) throws java.io.IOException
BinaryOutput
print
in interface BinaryOutput
java.io.IOException
public int write(java.io.InputStream is, int length) throws java.io.IOException
BinaryOutput
write
in interface BinaryOutput
java.io.IOException
public long getPosition()
BinaryStream
getPosition
in interface BinaryStream
public boolean isEOF()
BinaryStream
isEOF
in interface BinaryStream
public long seek(long offset, int whence)
BinaryStream
seek
in interface BinaryStream
public boolean setPosition(long offset)
BinaryStream
setPosition
in interface BinaryStream
public Value stat()
BinaryStream
stat
in interface BinaryStream
public void flush()
BinaryOutput
flush
in interface BinaryOutput
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void close()
BinaryOutput
close
in interface BinaryOutput
close
in interface BinaryStream
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
public java.lang.String toString()
toString
in class java.lang.Object