public final class PtpIpOutputStream
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
PtpIpOutputStream(java.io.OutputStream os)
Wrap OutputStream by PacketOutputStream
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(PtpIpPacket packet)
Write PTP-IP Packet to the stream.
|
void |
writeData(UINT32 transactionID,
byte[] data)
Write data to the stream as content of DataPhase (StartData -> [Data] -> EndData)
|
public PtpIpOutputStream(java.io.OutputStream os)
os
- public void write(PtpIpPacket packet) throws java.io.IOException
packet
- java.io.IOException
public void writeData(UINT32 transactionID, byte[] data) throws java.io.IOException
transactionID
- data
- java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException