|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.caucho.quercus.lib.file.AbstractBinaryOutput
com.caucho.quercus.lib.file.HttpInputOutput
public class HttpInputOutput
| Field Summary |
|---|
| Fields inherited from interface com.caucho.quercus.lib.file.BinaryStream |
|---|
SEEK_CUR, SEEK_END, SEEK_SET |
| Constructor Summary | |
|---|---|
HttpInputOutput(Env env,
Path path,
StreamContextResource context)
|
|
| Method Summary | |
|---|---|
StringValue |
appendTo(StringValue builder)
Appends to a string builder. |
void |
cleanup()
|
void |
close()
Closes the file. |
void |
closeRead()
Closes the file for reading. |
java.io.InputStream |
getInputStream()
Returns the read stream. |
boolean |
isEOF()
Returns true on the EOF. |
boolean |
lock(boolean shared,
boolean block)
Lock the shared advisory lock. |
BinaryInput |
openCopy()
Opens a copy. |
int |
read()
Reads a character from a file, returning -1 on EOF. |
int |
read(byte[] buffer,
int offset,
int length)
Reads a buffer from a file, returning -1 on EOF. |
int |
read(char[] buffer,
int offset,
int length)
Reads a buffer from a file, returning -1 on EOF. |
StringValue |
read(int length)
Reads a Binary string. |
StringValue |
readLine(long length)
Reads a line from the buffer. |
boolean |
readOptionalLinefeed()
Reads the optional linefeed character from a \r\n |
void |
setEncoding(java.lang.String encoding)
Sets the current read encoding. |
java.lang.String |
toString()
|
boolean |
unlock()
Unlock the advisory lock. |
void |
unread()
Unread a character. |
void |
write(int ch)
|
| Methods inherited from class com.caucho.quercus.lib.file.AbstractBinaryOutput |
|---|
closeWrite, flush, getOutputStream, getPosition, getResourceType, print, print, seek, setPosition, stat, write |
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.quercus.lib.file.BinaryInput |
|---|
getPosition, setPosition |
| Methods inherited from interface com.caucho.quercus.lib.file.BinaryOutput |
|---|
closeWrite, flush, getOutputStream, print, print, write, write |
| Methods inherited from interface com.caucho.quercus.lib.file.BinaryStream |
|---|
seek, stat |
| Constructor Detail |
|---|
public HttpInputOutput(Env env,
Path path,
StreamContextResource context)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void write(int ch)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public StringValue appendTo(StringValue builder)
throws java.io.IOException
appendTo in interface BinaryInputjava.io.IOExceptionpublic java.io.InputStream getInputStream()
getInputStream in interface BinaryInput
public BinaryInput openCopy()
throws java.io.IOException
openCopy in interface BinaryInputjava.io.IOException
public int read()
throws java.io.IOException
read in interface BinaryInputjava.io.IOException
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in interface BinaryInputjava.io.IOException
public int read(char[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOException
public StringValue read(int length)
throws java.io.IOException
read in interface BinaryInputjava.io.IOException
public StringValue readLine(long length)
throws java.io.IOException
readLine in interface BinaryInputjava.io.IOException
public boolean readOptionalLinefeed()
throws java.io.IOException
readOptionalLinefeed in interface BinaryInputjava.io.IOExceptionpublic boolean isEOF()
isEOF in interface BinaryStreamisEOF in class AbstractBinaryOutput
public void setEncoding(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
encoding - name of the read encoding
java.io.UnsupportedEncodingException
public void unread()
throws java.io.IOException
unread in interface BinaryInputjava.io.IOException
public boolean lock(boolean shared,
boolean block)
LockableStream
lock in interface LockableStreampublic boolean unlock()
LockableStream
unlock in interface LockableStreampublic void closeRead()
closeRead in interface BinaryInputpublic void close()
close in interface BinaryInputclose in interface BinaryOutputclose in interface BinaryStreamclose in interface java.io.Closeableclose in class AbstractBinaryOutputpublic void cleanup()
cleanup in interface EnvCleanuppublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||