com.caucho.vfs
Class StreamImpl
java.lang.Object
|
+--com.caucho.vfs.StreamImpl
- Direct Known Subclasses:
- JniStream, LogStream, MemoryPath.MemoryStream, MemoryStream, MultipartStream, PipeStream, ReaderWriterStream, SocketStream, StderrStream, StdoutStream, StreamFilter, StringStream, StringWriter, TempReadStream, TempStream, VfsStream
- public class StreamImpl
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
protected Path path
StreamImpl
public StreamImpl()
canRead
public boolean canRead()
getNewline
public byte[] getNewline()
read
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
getAvailable
public int getAvailable()
throws java.io.IOException
getReadPosition
public long getReadPosition()
canWrite
public boolean canWrite()
getFlushOnNewline
public boolean getFlushOnNewline()
write
public void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write
public void write(byte[] buffer,
int offset,
int length,
boolean isEnd)
throws java.io.IOException
clearWrite
public void clearWrite()
flush
public void flush()
throws java.io.IOException
getPath
public Path getPath()
setPath
public void setPath(Path path)
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
throws java.io.IOException
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.io.IOException
removeAttribute
public void removeAttribute(java.lang.String name)
throws java.io.IOException
getAttributeNames
public java.util.Iterator getAttributeNames()
throws java.io.IOException
close
public void close()
throws java.io.IOException