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 |
setMaxAllowedPacket(int maxAllowedPacket) |
void |
startPacket(int seqNo) |
void |
startPacket(int seqNo,
boolean checkPacketLength) |
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, boolean checkPacketLength) throws IOException
IOException
public void startPacket(int seqNo) throws IOException
IOException
public int getSeqNo()
public void sendFile(InputStream is, int seq) throws IOException
IOException
public void finishPacket() throws IOException
IOException
public void write(byte[] bytes, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void setMaxAllowedPacket(int maxAllowedPacket)
Copyright © 2015. All rights reserved.