| java.lang.Object com.caucho.quercus.lib.file.WrappedStream
Method Summary | |
public StringValue | appendTo(StringValue builder) Appends to a string builder. | public void | close() | public void | closeRead() | public void | closeWrite() | public void | flush() | public InputStream | getInputStream() | public OutputStream | getOutputStream() | public long | getPosition() | public boolean | isEOF() | public BinaryInput | openCopy() Opens a new copy. | public void | print(char v) Prints a string to a file. | public void | print(String v) Prints a string to a file. | public int | read() Reads a character from a file, returning -1 on EOF. | public int | read(byte[] buffer, int offset, int length) | public int | read(char[] buffer, int offset, int length) | public StringValue | read(int length) Reads a Binary string. | public StringValue | readLine(long length) Reads a line from a file, returning null on EOF. | public boolean | readOptionalLinefeed() | public long | seek(long offset, int whence) | public void | setEncoding(String encoding) Sets the current read encoding. | public boolean | setPosition(long offset) Sets the position. | public Value | stat() | public void | unread() Unread a character. | public void | write(byte[] buffer, int offset, int length) | public int | write(InputStream is, int length) Writes to a stream. |
close | public void close()(Code) | | |
closeRead | public void closeRead()(Code) | | |
closeWrite | public void closeWrite()(Code) | | |
getPosition | public long getPosition()(Code) | | Tells the position in the stream
|
isEOF | public boolean isEOF()(Code) | | Returns true if end-of-file has been reached
|
read | public int read() throws IOException(Code) | | Reads a character from a file, returning -1 on EOF.
|
read | public int read(byte[] buffer, int offset, int length)(Code) | | |
read | public int read(char[] buffer, int offset, int length)(Code) | | |
readOptionalLinefeed | public boolean readOptionalLinefeed() throws IOException(Code) | | Reads the optional linefeed character from a \r\n
|
seek | public long seek(long offset, int whence)(Code) | | |
setEncoding | public void setEncoding(String encoding) throws UnsupportedEncodingException(Code) | | Sets the current read encoding. The encoding can either be a
Java encoding name or a mime encoding.
Parameters: encoding - name of the read encoding |
setPosition | public boolean setPosition(long offset)(Code) | | Sets the position.
|
write | public void write(byte[] buffer, int offset, int length) throws IOException(Code) | | |
|
|