com.caucho.server.http
Class JniStream
java.lang.Object
|
+--com.caucho.vfs.StreamImpl
|
+--com.caucho.server.http.JniStream
- public class JniStream
- extends StreamImpl
Stream using with JNI.
|
Constructor Summary |
JniStream()
|
JniStream(int fd)
Create a new JniStream based on the java.io.* stream. |
| Methods inherited from class com.caucho.vfs.StreamImpl |
clearWrite, flush, getAttribute, getAttributeNames, getFlushOnNewline, getNewline, getPath, getReadPosition, removeAttribute, setAttribute, setPath, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JniStream
public JniStream(int fd)
- Create a new JniStream based on the java.io.* stream.
JniStream
public JniStream()
init
public void init(int fd)
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
close
public void close()
throws java.io.IOException
- Overrides:
close in class StreamImpl