|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.caucho.quercus.lib.file.WriteStreamOutput
public class WriteStreamOutput
Represents a Quercus file open for reading
Field Summary |
---|
Fields inherited from interface com.caucho.quercus.lib.file.BinaryStream |
---|
SEEK_CUR, SEEK_END, SEEK_SET |
Constructor Summary | |
---|---|
WriteStreamOutput(java.io.OutputStream os)
|
Method Summary | |
---|---|
void |
close()
Closes the stream. |
void |
closeWrite()
Closes the stream for writing |
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)
|
Methods inherited from class java.io.OutputStream |
---|
flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.caucho.quercus.lib.file.BinaryOutput |
---|
flush |
Constructor Detail |
---|
public WriteStreamOutput(java.io.OutputStream os)
Method Detail |
---|
public java.io.OutputStream getOutputStream()
getOutputStream
in interface BinaryOutput
public void close()
BinaryOutput
close
in interface BinaryOutput
close
in interface BinaryStream
close
in interface java.io.Closeable
close
in class java.io.OutputStream
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 java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |