com.caucho.vfs
Class SocketStream

java.lang.Object
  |
  +--com.caucho.vfs.StreamImpl
        |
        +--com.caucho.vfs.SocketStream

public class SocketStream
extends StreamImpl


Fields inherited from class com.caucho.vfs.StreamImpl
path
 
Constructor Summary
SocketStream(java.net.Socket s)
           
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 void close()
           
 void flush()
           
 int getAvailable()
           
 byte[] getNewline()
           
 void init(java.net.Socket s)
           
 int read(byte[] buf, int offset, int length)
           
 void setNewline(byte[] newline)
           
 void write(byte[] buf, int offset, int length, boolean isEnd)
           
 
Methods inherited from class com.caucho.vfs.StreamImpl
clearWrite, getAttribute, getAttributeNames, getFlushOnNewline, getPath, removeAttribute, setAttribute, setPath, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketStream

public SocketStream(java.net.Socket s)
Method Detail

init

public void init(java.net.Socket s)

setNewline

public void setNewline(byte[] newline)

getNewline

public byte[] getNewline()
Overrides:
getNewline in class StreamImpl

canRead

public boolean canRead()
Overrides:
canRead in class StreamImpl

read

public int read(byte[] buf,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class StreamImpl

getAvailable

public int getAvailable()
                 throws java.io.IOException
Overrides:
getAvailable in class StreamImpl

canWrite

public boolean canWrite()
Overrides:
canWrite in class StreamImpl

write

public void write(byte[] buf,
                  int offset,
                  int length,
                  boolean isEnd)
           throws java.io.IOException
Overrides:
write in class StreamImpl

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class StreamImpl

close

public void close()
           throws java.io.IOException
Overrides:
close in class StreamImpl