|
||||||||||
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
public class StreamResource
Represents a PHP open stream
Field Summary |
---|
Fields inherited from class com.caucho.quercus.env.Value |
---|
L, NULL_ARGS, NULL_VALUE_ARRAY |
Constructor Summary | |
---|---|
StreamResource()
|
Method Summary | |
---|---|
void |
close()
Closes the stream. |
void |
closeRead()
Closes the stream for reading |
void |
closeWrite()
Closes the stream for writing |
void |
flush()
Flushes the output |
long |
getPosition()
Returns the current location in the file. |
boolean |
isEOF()
Returns true on the end of file. |
void |
print(char ch)
prints |
void |
print(java.lang.String s)
prints |
int |
read()
Reads the next byte, returning -1 on eof. |
int |
read(byte[] buffer,
int offset,
int length)
Reads a buffer, returning -1 on eof. |
StringValue |
readLine(Env env)
Reads a line from the buffer. |
boolean |
readOptionalLinefeed()
Reads the optional linefeed character from a \r\n |
int |
write(byte[] buffer,
int offset,
int length)
Writes to a buffer. |
Methods inherited from class com.caucho.quercus.env.ResourceValue |
---|
cleanup, isResource, printRImpl, serialize, toKey, toString, varDumpImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StreamResource()
Method Detail |
---|
public int read() throws java.io.IOException
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public boolean readOptionalLinefeed() throws java.io.IOException
java.io.IOException
public StringValue readLine(Env env) throws java.io.IOException
java.io.IOException
public int write(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public void print(char ch) throws java.io.IOException
java.io.IOException
public void print(java.lang.String s) throws java.io.IOException
java.io.IOException
public boolean isEOF()
public void flush()
public long getPosition()
public void close()
close
in class ResourceValue
public void closeRead()
public void closeWrite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |