|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.lib.file.AbstractBinaryInputOutput
com.caucho.quercus.lib.file.SocketInputOutput
public class SocketInputOutput
Represents read/write stream
| Nested Class Summary | |
|---|---|
static class |
SocketInputOutput.Domain
|
| Field Summary |
|---|
| Fields inherited from interface com.caucho.quercus.lib.file.BinaryStream |
|---|
SEEK_CUR, SEEK_END, SEEK_SET |
| Constructor Summary | |
|---|---|
SocketInputOutput(Env env,
java.net.Socket socket,
SocketInputOutput.Domain domain)
|
|
| Method Summary | |
|---|---|
void |
bind(java.net.SocketAddress address)
|
void |
cleanup()
Implements the EnvCleanup interface. |
void |
close()
Closes the stream. |
void |
connect(java.net.SocketAddress address)
|
void |
init()
|
void |
setError(int error)
|
void |
setTimeout(long timeout)
|
java.lang.String |
toString()
Converts to a string. |
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer. |
int |
write(java.io.InputStream is,
int length)
Read length bytes of data from the InputStream argument and write them to this output stream. |
void |
write(int ch)
|
| Methods inherited from class com.caucho.quercus.lib.file.AbstractBinaryInputOutput |
|---|
appendTo, closeRead, closeWrite, flush, getEnv, getInputStream, getOutputStream, getPosition, getResourceType, init, isEOF, openCopy, print, print, read, read, read, read, readLine, readOptionalLinefeed, seek, setEncoding, setPosition, stat, toJavaObject, unread, writeToStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SocketInputOutput(Env env,
java.net.Socket socket,
SocketInputOutput.Domain domain)
| Method Detail |
|---|
public void bind(java.net.SocketAddress address)
throws java.io.IOException
java.io.IOException
public void connect(java.net.SocketAddress address)
throws java.io.IOException
java.io.IOExceptionpublic void setError(int error)
public void init()
public void setTimeout(long timeout)
setTimeout in class AbstractBinaryInputOutput
public void write(int ch)
throws java.io.IOException
write in class AbstractBinaryInputOutputjava.io.IOException
public void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
BinaryOutput
write in interface BinaryOutputwrite in class AbstractBinaryInputOutputjava.io.IOException
public int write(java.io.InputStream is,
int length)
write in interface BinaryOutputwrite in class AbstractBinaryInputOutputpublic void close()
close in interface BinaryInputclose in interface BinaryOutputclose in interface BinaryStreamclose in class AbstractBinaryInputOutputpublic void cleanup()
cleanup in interface EnvCleanuppublic java.lang.String toString()
AbstractBinaryInputOutput
toString in class AbstractBinaryInputOutput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||