class PDUEncoder extends PDVOutputStream
Modifier and Type | Field and Description |
---|---|
private Association |
as |
private byte[] |
buf |
private Object |
dimseLock |
private int |
maxpdulen |
private OutputStream |
out |
private int |
pdvcmd |
private int |
pdvpcid |
private int |
pdvpos |
private int |
pos |
private Thread |
th |
Constructor and Description |
---|
PDUEncoder(Association as,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
private void |
checkThread() |
void |
close() |
void |
copyFrom(InputStream in) |
void |
copyFrom(InputStream in,
int len) |
private void |
encode(AAssociateRQAC rqac,
int pduType,
int pcItemType) |
private void |
encode(byte[] b) |
private void |
encode(CommonExtendedNegotiation extNeg) |
private void |
encode(ExtendedNegotiation extNeg) |
private void |
encode(PresentationContext pc,
int pcItemType) |
private void |
encode(RoleSelection rs) |
private void |
encode(String s) |
private void |
encode(UserIdentityAC userIdentity) |
private void |
encode(UserIdentityRQ userIdentity) |
private void |
encodeAET(String aet) |
private void |
encodeAsyncOpsWindow(AAssociateRQAC rqac) |
private void |
encodeItemHeader(int type,
int len) |
private void |
encodeMaxPDULength(int maxPDULength) |
private void |
encodePDVHeader(int last) |
private void |
encodeStringItem(int type,
String s) |
private void |
encodeUserInfo(AAssociateRQAC rqac) |
private void |
flushPDataTF() |
private int |
free() |
private void |
put(byte[] b) |
private void |
put(byte[] b,
int off,
int len) |
private void |
put(int ch) |
private void |
putInt(int v) |
private void |
putShort(int v) |
private void |
putString(String s) |
void |
write(AAbort aa) |
void |
write(AAssociateAC ac) |
void |
write(AAssociateRJ rj) |
void |
write(AAssociateRQ rq) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private void |
write(int pdutype,
int result,
int source,
int reason) |
void |
writeAReleaseRP() |
void |
writeAReleaseRQ() |
void |
writeDIMSE(PresentationContext pc,
Attributes cmd,
DataWriter dataWriter) |
void |
writePDataTF() |
private void |
writePDU(int pdulen) |
flush, write
private Association as
private OutputStream out
private byte[] buf
private int pos
private int pdvpcid
private int pdvcmd
private int pdvpos
private int maxpdulen
public PDUEncoder(Association as, OutputStream out)
public void write(AAssociateRQ rq) throws IOException
IOException
public void write(AAssociateAC ac) throws IOException
IOException
public void write(AAssociateRJ rj) throws IOException
IOException
public void writeAReleaseRQ() throws IOException
IOException
public void writeAReleaseRP() throws IOException
IOException
public void write(AAbort aa) throws IOException
IOException
private void write(int pdutype, int result, int source, int reason) throws IOException
IOException
private void writePDU(int pdulen) throws IOException
IOException
private void encode(AAssociateRQAC rqac, int pduType, int pcItemType)
private void put(int ch)
private void put(byte[] b)
private void put(byte[] b, int off, int len)
private void putShort(int v)
private void putInt(int v)
private void encode(byte[] b)
private void encodeItemHeader(int type, int len)
private void encodeStringItem(int type, String s)
private void encode(PresentationContext pc, int pcItemType)
private void encodeUserInfo(AAssociateRQAC rqac)
private void encodeMaxPDULength(int maxPDULength)
private void encodeAsyncOpsWindow(AAssociateRQAC rqac)
private void encode(RoleSelection rs)
private void encode(ExtendedNegotiation extNeg)
private void encode(CommonExtendedNegotiation extNeg)
private void encode(UserIdentityRQ userIdentity)
private void encode(UserIdentityAC userIdentity)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
public void copyFrom(InputStream in, int len) throws IOException
copyFrom
in class PDVOutputStream
IOException
public void copyFrom(InputStream in) throws IOException
copyFrom
in class PDVOutputStream
IOException
private void checkThread()
private int free()
private void flushPDataTF() throws IOException
IOException
private void encodePDVHeader(int last)
public void writePDataTF() throws IOException
IOException
public void writeDIMSE(PresentationContext pc, Attributes cmd, DataWriter dataWriter) throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.