| com.caucho.quercus.lib.file.FileValue com.caucho.quercus.lib.file.FileReadValue
FileReadValue | public class FileReadValue extends FileValue (Code) | | Represents a Quercus open file
|
Method Summary | |
public void | close() Closes the file. | public long | getLength() Returns the number of bytes available to be read, 0 if no known. | public long | getPosition() Returns the current location in the file. | public boolean | isEOF() Returns true on the EOF. | 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 StringValue | readLine() Reads a line from a file, returning null on EOF. | public boolean | readOptionalLinefeed() | public String | toString() Converts to a string. | public void | writeToStream(OutputStream os, int length) |
close | public void close()(Code) | | Closes the file.
|
getLength | public long getLength()(Code) | | Returns the number of bytes available to be read, 0 if no known.
|
getPosition | public long getPosition()(Code) | | Returns the current location in the file.
|
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.
|
readOptionalLinefeed | public boolean readOptionalLinefeed() throws IOException(Code) | | Reads the optional linefeed character from a \r\n
|
toString | public String toString()(Code) | | Converts to a string.
Parameters: env - |
|
|