|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.caucho.quercus.lib.file.ReadStreamInput
com.caucho.quercus.lib.file.FileInput
public class FileInput
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 | |
|---|---|
FileInput(Env env,
Path path)
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Implements the EnvCleanup interface. |
void |
close()
Closes the file. |
long |
getLength()
Returns the number of bytes available to be read, 0 if no known. |
Path |
getPath()
Returns the path. |
boolean |
lock(boolean shared,
boolean block)
Lock the shared advisory lock. |
BinaryInput |
openCopy()
Opens a copy. |
long |
seek(long offset,
int whence)
Seek according to offset and whence. |
Value |
stat()
Returns an array filled with stat information. |
java.lang.String |
toString()
Converts to a string. |
boolean |
unlock()
Unlock the advisory lock. |
| Methods inherited from class com.caucho.quercus.lib.file.ReadStreamInput |
|---|
appendTo, closeRead, getInputStream, getPosition, getResourceType, init, isEOF, read, read, read, read, readLine, readOptionalLinefeed, setEncoding, setPosition, toJavaObject, unread, writeToStream |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileInput(Env env,
Path path)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public Path getPath()
public BinaryInput openCopy()
throws java.io.IOException
openCopy in interface BinaryInputopenCopy in class ReadStreamInputjava.io.IOExceptionpublic long getLength()
public long seek(long offset,
int whence)
BinaryStream
seek in interface BinaryStreamseek in class ReadStreamInput
public boolean lock(boolean shared,
boolean block)
lock in interface LockableStreampublic boolean unlock()
unlock in interface LockableStreampublic Value stat()
BinaryStream
stat in interface BinaryStreamstat in class ReadStreamInputpublic void close()
ReadStreamInput
close in interface BinaryInputclose in interface BinaryStreamclose in interface java.io.Closeableclose in class ReadStreamInputpublic void cleanup()
cleanup in interface EnvCleanuppublic java.lang.String toString()
toString in class ReadStreamInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||