public class DataTypeByte extends DicomValue
| Constructor and Description |
|---|
DataTypeByte() |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the value of Data Type Byte in readable form to the specified Stream.
|
long |
getMaxLength()
Retrieves maximum allowed length by this datatype.
|
int |
getValueLength()
Retrieves the actual value length set in the DataTypeString.
|
boolean |
read(IDicomStream objIDicomStream,
int iOBLength)
Reads the data value from the stream of specified length of bytes.
|
void |
setMaxLength(long lMaxLength)
Sets the length of the value in DicomValue.
|
boolean |
validate()
Validates the data value object as per the encoding rules provided in the DICOM Standard.
|
boolean |
validate(java.lang.Object value)
Validates the data value object as per the encoding rules provided in the DICOM Standard.
|
int |
write(IDicomStream objIDicomStream)
This method writes the Data Value to the given Stream.
|
clone, getIVRType, getValue, getValueMultiplicity, setIVRType, setValuepublic void setMaxLength(long lMaxLength)
lMaxLength - max length of Dicomdatapublic long getMaxLength()
public boolean validate(java.lang.Object value)
validate in interface IDicomValuevalidate in class DicomValuevalue - object representing value to be validated.ValidationException - If validation fails according to Dicom rules.public boolean validate()
validate in interface IDicomValuevalidate in class DicomValuevalue - object representing value to be validated.ValidationException - If validation fails according to Dicom rules.public boolean read(IDicomStream objIDicomStream, int iOBLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueread in class DicomValueobjIDicomStream - isntance of class implementing the IDicomStream interface.iOBLength - Number of bytes to be read from the Stream.InvalidDataTypeException - If DataType validation fails.java.io.IOException - If Input/Output operation fails.public int write(IDicomStream objIDicomStream) throws java.io.IOException
write in interface IDicomValuewrite in class DicomValueobjIDicomStream - object of the stream onto which the DataTypeString is to be written.java.io.IOException - If Input/Output operation fails.public int getValueLength()
getValueLength in interface IDicomValuegetValueLength in class DicomValuepublic void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - - the Stream on which the Data is to be written.java.io.IOException - - Exception is thrown indicating runtime failure of writing operation.