public class TransferSyntax
extends java.lang.Object
A class to represent the characteristics of a DICOM Transfer Syntax, which may be instantiated from a UID or from basic characteristics, as well as static UID strings for known Transfer Syntaxes, and static methods for extracting the characteristics of known Transfer Syntaxes.
Modifier and Type | Field and Description |
---|---|
protected boolean |
bigEndian |
static java.lang.String |
Default |
static java.lang.String |
DeflatedExplicitVRLittleEndian |
protected java.lang.String |
description |
protected boolean |
encapsulatedPixelData |
protected boolean |
explicitVR |
static java.lang.String |
ExplicitVRBigEndian |
static java.lang.String |
ExplicitVRLittleEndian |
protected java.lang.String |
fileNameExtension |
static java.lang.String |
ImplicitVRLittleEndian |
static java.lang.String |
JPEG2000 |
static java.lang.String |
JPEG2000Lossless |
static java.lang.String |
JPEGBaseline |
static java.lang.String |
JPEGExtended |
protected boolean |
jpegFamily |
static java.lang.String |
JPEGFullProgressionNonHierarchical1012 |
static java.lang.String |
JPEGLossless |
static java.lang.String |
JPEGLosslessSV1 |
static java.lang.String |
JPEGLS |
static java.lang.String |
JPEGNLS |
protected boolean |
lossy |
static java.lang.String |
MPEG2MPHL |
static java.lang.String |
MPEG2MPML |
static java.lang.String |
MPEG4HP41 |
static java.lang.String |
MPEG4HP41BD |
static java.lang.String |
MPEG4HP422D |
static java.lang.String |
MPEG4HP423D |
static java.lang.String |
MPEG4HP42ST |
static java.lang.String |
Papyrus3ImplicitVRLittleEndian |
static java.lang.String |
PixelMedBzip2ExplicitVRLittleEndian |
static java.lang.String |
PixelMedEncapsulatedRawLittleEndian |
protected boolean |
recognized |
static java.lang.String |
RLE |
protected java.lang.String |
transferSyntaxUID |
Constructor and Description |
---|
TransferSyntax(java.lang.String uid)
Construct a Transfer Syntax using the specified UID, automatically determining its characteristics.
|
TransferSyntax(java.lang.String transferSyntaxUID,
java.lang.String description,
boolean explicitVR,
boolean bigEndian,
boolean encapsulatedPixelData,
boolean lossy)
Construct a Transfer Syntax using the specified UID and characteristics.
|
TransferSyntax(java.lang.String transferSyntaxUID,
java.lang.String description,
boolean explicitVR,
boolean bigEndian,
boolean encapsulatedPixelData,
boolean lossy,
java.lang.String fileNameExtension)
Construct a Transfer Syntax using the specified UID and characteristics.
|
TransferSyntax(java.lang.String transferSyntaxUID,
java.lang.String description,
boolean explicitVR,
boolean bigEndian,
boolean encapsulatedPixelData,
boolean lossy,
java.lang.String fileNameExtension,
boolean jpegFamily)
Construct a Transfer Syntax using the specified UID and characteristics.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dump()
Describe the characteristics of Transfer Syntax.
|
java.lang.String |
getDescription()
Get a human-readable description of the Transfer Syntax.
|
java.lang.String |
getFileNameExtension()
Get the file name extension appropriate for the Transfer Syntax.
|
java.lang.String |
getUID()
Get the UID of the Transfer Syntax.
|
boolean |
isBigEndian()
Is the Transfer Syntax big endian ?
|
static boolean |
isBigEndian(java.lang.String uid)
Is the Transfer Syntax with the specified UID big endian ?
|
boolean |
isBzip2ed()
Does the Transfer Syntax use bzip2 compression ?
|
boolean |
isDeflated()
Does the Transfer Syntax use deflate compression ?
|
boolean |
isEncapsulated()
Does the Transfer Syntax encapsulate the pixel data ?
|
static boolean |
isEncapsulated(java.lang.String uid)
Does the Transfer Syntax encapsulate the pixel data ?
|
boolean |
isExplicitVR()
Is the Transfer Syntax explicit VR ?
|
static boolean |
isExplicitVR(java.lang.String uid)
Is the Transfer Syntax with the specified UID explicit VR ?
|
boolean |
isImplicitVR()
Is the Transfer Syntax implicit VR ?
|
static boolean |
isImplicitVR(java.lang.String uid)
Is the Transfer Syntax with the specified UID implicit VR ?
|
boolean |
isJPEGFamily()
Is the Transfer Syntax part of the JPEG family of Transfer Syntaxes?
|
boolean |
isLittleEndian()
Is the Transfer Syntax little endian ?
|
static boolean |
isLittleEndian(java.lang.String uid)
Is the Transfer Syntax with the specified UID little endian ?
|
boolean |
isLossy()
Is the Transfer Syntax potentially lossy ?
|
boolean |
isNotEncapsulated()
Does the Transfer Syntax encode the pixel data without encapsulation?
|
static boolean |
isNotEncapsulated(java.lang.String uid)
Does the Transfer Syntax encode the pixel data without encapsulation?
|
boolean |
isRecognized()
Is the Transfer Syntax recognized ?
|
java.lang.String |
toString()
Get the Transfer Syntax as a string.
|
protected boolean bigEndian
public static final java.lang.String Default
public static final java.lang.String DeflatedExplicitVRLittleEndian
protected java.lang.String description
protected boolean encapsulatedPixelData
protected boolean explicitVR
public static final java.lang.String ExplicitVRBigEndian
public static final java.lang.String ExplicitVRLittleEndian
protected java.lang.String fileNameExtension
public static final java.lang.String ImplicitVRLittleEndian
public static final java.lang.String JPEG2000
public static final java.lang.String JPEG2000Lossless
public static final java.lang.String JPEGBaseline
public static final java.lang.String JPEGExtended
protected boolean jpegFamily
public static final java.lang.String JPEGFullProgressionNonHierarchical1012
public static final java.lang.String JPEGLossless
public static final java.lang.String JPEGLosslessSV1
public static final java.lang.String JPEGLS
public static final java.lang.String JPEGNLS
protected boolean lossy
public static final java.lang.String MPEG2MPHL
public static final java.lang.String MPEG2MPML
public static final java.lang.String MPEG4HP41
public static final java.lang.String MPEG4HP41BD
public static final java.lang.String MPEG4HP422D
public static final java.lang.String MPEG4HP423D
public static final java.lang.String MPEG4HP42ST
public static final java.lang.String Papyrus3ImplicitVRLittleEndian
public static final java.lang.String PixelMedBzip2ExplicitVRLittleEndian
public static final java.lang.String PixelMedEncapsulatedRawLittleEndian
protected boolean recognized
public static final java.lang.String RLE
protected java.lang.String transferSyntaxUID
public TransferSyntax(java.lang.String uid)
Construct a Transfer Syntax using the specified UID, automatically determining its characteristics.
uid
- the UID to use to refer to this transfer syntaxpublic TransferSyntax(java.lang.String transferSyntaxUID, java.lang.String description, boolean explicitVR, boolean bigEndian, boolean encapsulatedPixelData, boolean lossy)
Construct a Transfer Syntax using the specified UID and characteristics.
transferSyntaxUID
- the UID to use to refer to this transfer syntaxdescription
- the description of this transfer syntaxexplicitVR
- true if an explicit VR transfer syntaxbigEndian
- true if big-endian transfer syntaxencapsulatedPixelData
- true if a pixel data encapsulated transfer syntaxlossy
- true if lossy compressionpublic TransferSyntax(java.lang.String transferSyntaxUID, java.lang.String description, boolean explicitVR, boolean bigEndian, boolean encapsulatedPixelData, boolean lossy, java.lang.String fileNameExtension)
Construct a Transfer Syntax using the specified UID and characteristics.
transferSyntaxUID
- the UID to use to refer to this transfer syntaxdescription
- the description of this transfer syntaxexplicitVR
- true if an explicit VR transfer syntaxbigEndian
- true if big-endian transfer syntaxencapsulatedPixelData
- true if a pixel data encapsulated transfer syntaxlossy
- true if lossy compressionfileNameExtension
- fileNameExtension to use if bit stream is to be saved as a filepublic TransferSyntax(java.lang.String transferSyntaxUID, java.lang.String description, boolean explicitVR, boolean bigEndian, boolean encapsulatedPixelData, boolean lossy, java.lang.String fileNameExtension, boolean jpegFamily)
Construct a Transfer Syntax using the specified UID and characteristics.
transferSyntaxUID
- the UID to use to refer to this transfer syntaxdescription
- the description of this transfer syntaxexplicitVR
- true if an explicit VR transfer syntaxbigEndian
- true if big-endian transfer syntaxencapsulatedPixelData
- true if a pixel data encapsulated transfer syntaxlossy
- true if lossy compressionfileNameExtension
- fileNameExtension to use if bit stream is to be saved as a filejpegFamily
- true if uses JPEG family marker segmentspublic java.lang.String dump()
Describe the characteristics of Transfer Syntax.
public java.lang.String getDescription()
Get a human-readable description of the Transfer Syntax.
public java.lang.String getFileNameExtension()
Get the file name extension appropriate for the Transfer Syntax.
Will be "unk" if unrecognized.
public java.lang.String getUID()
Get the UID of the Transfer Syntax.
public boolean isBigEndian()
Is the Transfer Syntax big endian ?
public static boolean isBigEndian(java.lang.String uid)
Is the Transfer Syntax with the specified UID big endian ?
uid
- public boolean isBzip2ed()
Does the Transfer Syntax use bzip2 compression ?
public boolean isDeflated()
Does the Transfer Syntax use deflate compression ?
public boolean isEncapsulated()
Does the Transfer Syntax encapsulate the pixel data ?
public static boolean isEncapsulated(java.lang.String uid)
Does the Transfer Syntax encapsulate the pixel data ?
uid
- public boolean isExplicitVR()
Is the Transfer Syntax explicit VR ?
public static boolean isExplicitVR(java.lang.String uid)
Is the Transfer Syntax with the specified UID explicit VR ?
uid
- public boolean isImplicitVR()
Is the Transfer Syntax implicit VR ?
public static boolean isImplicitVR(java.lang.String uid)
Is the Transfer Syntax with the specified UID implicit VR ?
uid
- public boolean isJPEGFamily()
Is the Transfer Syntax part of the JPEG family of Transfer Syntaxes?
I.e., those that share the same marker segments, such as the EOI marker used for end of frame in fragment detection.
public boolean isLittleEndian()
Is the Transfer Syntax little endian ?
public static boolean isLittleEndian(java.lang.String uid)
Is the Transfer Syntax with the specified UID little endian ?
uid
- public boolean isLossy()
Is the Transfer Syntax potentially lossy ?
public boolean isNotEncapsulated()
Does the Transfer Syntax encode the pixel data without encapsulation?
public static boolean isNotEncapsulated(java.lang.String uid)
Does the Transfer Syntax encode the pixel data without encapsulation?
uid
- public boolean isRecognized()
Is the Transfer Syntax recognized ?
public java.lang.String toString()
Get the Transfer Syntax as a string.
toString
in class java.lang.Object