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, writeprivate 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
IOExceptionpublic void write(AAssociateAC ac) throws IOException
IOExceptionpublic void write(AAssociateRJ rj) throws IOException
IOExceptionpublic void writeAReleaseRQ() throws IOException
IOExceptionpublic void writeAReleaseRP() throws IOException
IOExceptionpublic void write(AAbort aa) throws IOException
IOExceptionprivate void write(int pdutype, int result, int source, int reason) throws IOException
IOExceptionprivate void writePDU(int pdulen) throws IOException
IOExceptionprivate 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 OutputStreamIOExceptionpublic void write(byte[] b, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void copyFrom(InputStream in, int len) throws IOException
copyFrom in class PDVOutputStreamIOExceptionpublic void copyFrom(InputStream in) throws IOException
copyFrom in class PDVOutputStreamIOExceptionprivate void checkThread()
private int free()
private void flushPDataTF() throws IOException
IOExceptionprivate void encodePDVHeader(int last)
public void writePDataTF() throws IOException
IOExceptionpublic void writeDIMSE(PresentationContext pc, Attributes cmd, DataWriter dataWriter) throws IOException
IOExceptionCopyright © 2017 dcm4che.org. All rights reserved.