| java.lang.Object com.caucho.quercus.lib.file.AbstractBinaryInputOutput
All known Subclasses: com.caucho.quercus.lib.file.SocketInputOutput,
AbstractBinaryInputOutput | public class AbstractBinaryInputOutput implements BinaryInput,BinaryOutput(Code) | | Represents a Quercus file open for reading
|
Method Summary | |
public StringValue | appendTo(StringValue builder) Appends to a string builder. | public void | close() Closes the file. | public void | closeRead() Closes the stream for reading. | public void | closeWrite() Closes the file. | public void | flush() Flushes the output. | protected Env | getEnv() | public InputStream | getInputStream() Returns the input stream. | public OutputStream | getOutputStream() Returns self as the output stream. | public long | getPosition() Returns the current location in the file. | public String | getResourceType() | public void | init(ReadStream is, WriteStream os) | public boolean | isEOF() Returns true on the EOF. | public BinaryInput | openCopy() Opens a 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) Reads a buffer from a file, returning -1 on EOF. | public int | read(char[] buffer, int offset, int length) Reads a buffer from a file, returning -1 on EOF. | public StringValue | read(int length) Reads into a binary builder. | 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) | public boolean | setPosition(long offset) Returns the current location in the file. | public void | setTimeout(long timeout) | public Value | stat() | public Object | toJavaObject() | public String | toString() Converts to a string. | public void | unread() | public void | write(int ch) | public void | write(byte[] buffer, int offset, int length) | public int | write(InputStream is, int length) Read length bytes of data from the InputStream
argument and write them to this output stream. | public void | writeToStream(OutputStream os, int length) |
AbstractBinaryInputOutput | protected AbstractBinaryInputOutput(Env env)(Code) | | |
AbstractBinaryInputOutput | protected AbstractBinaryInputOutput(Env env, ReadStream is, WriteStream os)(Code) | | |
close | public void close()(Code) | | Closes the file.
|
closeRead | public void closeRead()(Code) | | Closes the stream for reading.
|
closeWrite | public void closeWrite()(Code) | | Closes the file.
|
getOutputStream | public OutputStream getOutputStream()(Code) | | Returns self as the output stream.
|
getPosition | public long getPosition()(Code) | | Returns the current location in the file.
|
init | public void init(ReadStream is, WriteStream os)(Code) | | |
isEOF | public boolean isEOF()(Code) | | Returns true on the EOF.
|
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) throws IOException(Code) | | Reads a buffer from a file, returning -1 on EOF.
|
read | public int read(char[] buffer, int offset, int length) throws IOException(Code) | | Reads a buffer from a file, returning -1 on EOF.
|
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) | | |
setPosition | public boolean setPosition(long offset)(Code) | | Returns the current location in the file.
|
setTimeout | public void setTimeout(long timeout)(Code) | | |
toString | public String toString()(Code) | | Converts to a string.
|
write | public void write(byte[] buffer, int offset, int length) throws IOException(Code) | | |
write | public int write(InputStream is, int length)(Code) | | Read length bytes of data from the InputStream
argument and write them to this output stream.
|
|
|