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, reset
private 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
IOException
private void checkThread()
private void checkPDULength(int len) throws AAbort
AAbort
private void readPDU() throws IOException
IOException
private void readFully(int off, int len) throws IOException
IOException
private String decodeString()
private AAssociateRQAC decode(AAssociateRQAC rqac) throws AAbort
AAbort
private void decodeItem(AAssociateRQAC rqac) throws AAbort
AAbort
private PresentationContext decodePC(int itemLen)
private void decodeUserInfo(int itemLength, AAssociateRQAC rqac) throws AAbort
AAbort
private void decodeUserInfoSubItem(AAssociateRQAC rqac) throws AAbort
AAbort
private RoleSelection decodeRoleSelection(int itemLen)
private ExtendedNegotiation decodeExtNeg(int itemLen)
private CommonExtendedNegotiation decodeCommonExtNeg(int itemLen) throws AAbort
AAbort
private UserIdentityRQ decodeUserIdentityRQ(int itemLen) throws AAbort
AAbort
private UserIdentityAC decodeUserIdentityAC(int itemLen) throws AAbort
AAbort
public void decodeDIMSE() throws IOException
IOException
private Dimse dimseOf(Attributes cmd) throws AAbort
AAbort
private Attributes readCommand() throws IOException
IOException
public Attributes readDataset(String tsuid) throws IOException
readDataset
in class PDVInputStream
IOException
private void nextPDV(int expectedPDVType, int expectedPCID) throws IOException
IOException
private boolean isLastPDV() throws IOException
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public final int available()
available
in class InputStream
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public long skipAll() throws IOException
skipAll
in class PDVInputStream
IOException
public void copyTo(OutputStream out, int length) throws IOException
copyTo
in class PDVInputStream
IOException
public void copyTo(OutputStream out) throws IOException
copyTo
in class PDVInputStream
IOException
Copyright © 2017 dcm4che.org. All rights reserved.