public class PacketOutputStream extends OutputStream
| Constructor and Description |
|---|
PacketOutputStream(OutputStream baseStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finishPacket() |
void |
flush() |
int |
getSeqNo() |
void |
sendFile(InputStream is,
int seq) |
void |
setCompress(boolean value) |
void |
startPacket(int seqNo) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
void |
write(int b) |
public PacketOutputStream(OutputStream baseStream)
public void setCompress(boolean value)
public void startPacket(int seqNo)
throws IOException
IOExceptionpublic int getSeqNo()
public void sendFile(InputStream is, int seq) throws IOException
IOExceptionpublic void finishPacket()
throws IOException
IOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2014. All rights reserved.