|
||||||||||
| 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 BinaryOutputpublic void close()
BinaryOutput
close in interface BinaryOutputclose in interface BinaryStreamclose in interface java.io.Closeableclose in class java.io.OutputStreampublic 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.IOException
public void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
BinaryOutput
write in interface BinaryOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void closeWrite()
BinaryOutput
closeWrite in interface BinaryOutput
public void print(char ch)
throws java.io.IOException
BinaryOutput
print in interface BinaryOutputjava.io.IOException
public void print(java.lang.String s)
throws java.io.IOException
BinaryOutput
print in interface BinaryOutputjava.io.IOException
public int write(java.io.InputStream is,
int length)
throws java.io.IOException
BinaryOutput
write in interface BinaryOutputjava.io.IOExceptionpublic long getPosition()
BinaryStream
getPosition in interface BinaryStreampublic boolean isEOF()
BinaryStream
isEOF in interface BinaryStream
public long seek(long offset,
int whence)
BinaryStream
seek in interface BinaryStreampublic boolean setPosition(long offset)
BinaryStream
setPosition in interface BinaryStreampublic Value stat()
BinaryStream
stat in interface BinaryStreampublic 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 | |||||||||