class PDUDecoder extends PDVInputStream
| Modifier and Type | Field and Description |
|---|---|
private Association |
as |
private byte[] |
buf |
private InputStream |
in |
private static String |
INVALID_COMMON_EXTENDED_NEGOTIATION |
private static String |
INVALID_PDU_LENGTH |
private static String |
INVALID_PDV |
private static String |
INVALID_USER_IDENTITY |
private static int |
MAX_PDU_LEN |
private int |
pcid |
private int |
pdulen |
private int |
pdutype |
private int |
pdvend |
private int |
pdvmch |
private int |
pos |
private Thread |
th |
private static String |
UNEXPECTED_PDV_PCID |
private static String |
UNEXPECTED_PDV_TYPE |
private static String |
UNRECOGNIZED_PDU |
| Constructor and Description |
|---|
PDUDecoder(Association as,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
private void |
abort(int reason,
String logmsg) |
int |
available() |
private void |
checkPDULength(int len) |
private void |
checkThread() |
void |
close() |
void |
copyTo(OutputStream out) |
void |
copyTo(OutputStream out,
int length) |
private AAssociateRQAC |
decode(AAssociateRQAC rqac) |
private byte[] |
decodeBytes() |
private CommonExtendedNegotiation |
decodeCommonExtNeg(int itemLen) |
void |
decodeDIMSE() |
private ExtendedNegotiation |
decodeExtNeg(int itemLen) |
private void |
decodeItem(AAssociateRQAC rqac) |
private PresentationContext |
decodePC(int itemLen) |
private RoleSelection |
decodeRoleSelection(int itemLen) |
private String |
decodeString() |
private UserIdentityAC |
decodeUserIdentityAC(int itemLen) |
private UserIdentityRQ |
decodeUserIdentityRQ(int itemLen) |
private void |
decodeUserInfo(int itemLength,
AAssociateRQAC rqac) |
private void |
decodeUserInfoSubItem(AAssociateRQAC rqac) |
private Dimse |
dimseOf(Attributes cmd) |
private int |
get() |
private void |
get(byte[] b,
int off,
int len) |
private byte[] |
getBytes(int len) |
private int |
getInt() |
private String |
getString(int len) |
private int |
getUnsignedShort() |
private boolean |
hasRemaining() |
private boolean |
isLastPDV() |
void |
nextPDU() |
private void |
nextPDV(int expectedPDVType,
int expectedPCID) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private Attributes |
readCommand() |
Attributes |
readDataset(String tsuid) |
private void |
readFully(int off,
int len) |
private void |
readPDU() |
private int |
remaining() |
private void |
skip(int len) |
long |
skip(long n) |
long |
skipAll() |
mark, markSupported, read, resetprivate static final String UNRECOGNIZED_PDU
private static final String INVALID_PDU_LENGTH
private static final String INVALID_COMMON_EXTENDED_NEGOTIATION
private static final String INVALID_USER_IDENTITY
private static final String INVALID_PDV
private static final String UNEXPECTED_PDV_TYPE
private static final String UNEXPECTED_PDV_PCID
private static final int MAX_PDU_LEN
private final Association as
private final InputStream in
private byte[] buf
private int pos
private int pdutype
private int pdulen
private int pcid
private int pdvmch
private int pdvend
public PDUDecoder(Association as, InputStream in)
private int remaining()
private boolean hasRemaining()
private int get()
private void get(byte[] b, int off, int len)
private void skip(int len)
private int getUnsignedShort()
private int getInt()
private byte[] getBytes(int len)
private byte[] decodeBytes()
public void nextPDU() throws IOException
IOExceptionprivate void checkThread()
private void checkPDULength(int len) throws AAbort
AAbortprivate void readPDU() throws IOException
IOExceptionprivate void readFully(int off, int len) throws IOException
IOExceptionprivate String decodeString()
private AAssociateRQAC decode(AAssociateRQAC rqac) throws AAbort
AAbortprivate void decodeItem(AAssociateRQAC rqac) throws AAbort
AAbortprivate PresentationContext decodePC(int itemLen)
private void decodeUserInfo(int itemLength, AAssociateRQAC rqac) throws AAbort
AAbortprivate void decodeUserInfoSubItem(AAssociateRQAC rqac) throws AAbort
AAbortprivate RoleSelection decodeRoleSelection(int itemLen)
private ExtendedNegotiation decodeExtNeg(int itemLen)
private CommonExtendedNegotiation decodeCommonExtNeg(int itemLen) throws AAbort
AAbortprivate UserIdentityRQ decodeUserIdentityRQ(int itemLen) throws AAbort
AAbortprivate UserIdentityAC decodeUserIdentityAC(int itemLen) throws AAbort
AAbortpublic void decodeDIMSE() throws IOException
IOExceptionprivate Dimse dimseOf(Attributes cmd) throws AAbort
AAbortprivate Attributes readCommand() throws IOException
IOExceptionpublic Attributes readDataset(String tsuid) throws IOException
readDataset in class PDVInputStreamIOExceptionprivate void nextPDV(int expectedPDVType, int expectedPCID) throws IOException
IOExceptionprivate boolean isLastPDV() throws IOException
IOExceptionpublic int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionpublic final int available()
available in class InputStreampublic long skip(long n) throws IOException
skip in class InputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic long skipAll() throws IOException
skipAll in class PDVInputStreamIOExceptionpublic void copyTo(OutputStream out, int length) throws IOException
copyTo in class PDVInputStreamIOExceptionpublic void copyTo(OutputStream out) throws IOException
copyTo in class PDVInputStreamIOExceptionCopyright © 2017 dcm4che.org. All rights reserved.