|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.env.Value
com.caucho.quercus.env.ResourceValue
com.caucho.quercus.resources.StreamResource
com.caucho.quercus.lib.file.FileValue
public class FileValue
Represents a Quercus open file
| Field Summary |
|---|
| Fields inherited from class com.caucho.quercus.env.Value |
|---|
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V |
| Constructor Summary | |
|---|---|
FileValue(Path path)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the file. |
Path |
getPath()
Returns the path. |
void |
print(java.lang.String v)
Prints a string to a file. |
int |
read()
Reads a character from a file, returning -1 on EOF. |
StringValue |
readLine(Env env)
Reads a line from a file, returning null. |
java.lang.String |
toString()
Converts to a string. |
void |
writeToStream(java.io.OutputStream os,
int length)
Read a maximum of length bytes from the file and write them to the outputStream. |
| Methods inherited from class com.caucho.quercus.resources.StreamResource |
|---|
closeRead, closeWrite, flush, getPosition, isEOF, print, read, readOptionalLinefeed, write |
| Methods inherited from class com.caucho.quercus.env.ResourceValue |
|---|
cleanup, printRImpl, toKey, varDumpImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileValue(Path path)
| Method Detail |
|---|
public Path getPath()
public int read()
throws java.io.IOException
read in class StreamResourcejava.io.IOException
public StringValue readLine(Env env)
throws java.io.IOException
readLine in class StreamResourcejava.io.IOException
public void writeToStream(java.io.OutputStream os,
int length)
throws java.io.IOException
os - the OutputStreamlength - the maximum number of bytes to read
java.io.IOException
public void print(java.lang.String v)
throws java.io.IOException
print in class StreamResourcejava.io.IOExceptionpublic void close()
close in class StreamResourcepublic java.lang.String toString()
toString in class ResourceValueenv -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||