public class TransferSyntax extends 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 String |
Default |
static String |
DeflatedExplicitVRLittleEndian |
protected String |
description |
protected boolean |
encapsulatedPixelData |
protected boolean |
explicitVR |
static String |
ExplicitVRBigEndian |
static String |
ExplicitVRLittleEndian |
protected String |
fileNameExtension |
static String |
ImplicitVRLittleEndian |
static String |
JPEG2000 |
static String |
JPEG2000Lossless |
static String |
JPEGBaseline |
static String |
JPEGExtended |
static String |
JPEGLossless |
static String |
JPEGLosslessSV1 |
static String |
JPEGLS |
static String |
JPEGNLS |
protected boolean |
lossy |
static String |
MPEG2MPHL |
static String |
MPEG2MPML |
static String |
MPEG4HP41 |
static String |
MPEG4HP41BD |
static String |
PixelMedBzip2ExplicitVRLittleEndian |
static String |
PixelMedEncapsulatedRawLittleEndian |
protected boolean |
recognized |
protected String |
transferSyntaxUID |
Constructor and Description |
---|
TransferSyntax(String uid)
Construct a Transfer Syntax using the specified UID, automatically determining its characteristics.
|
TransferSyntax(String transferSyntaxUID,
String description,
boolean explicitVR,
boolean bigEndian,
boolean encapsulatedPixelData,
boolean lossy)
Construct a Transfer Syntax using the specified UID and characteristics.
|
TransferSyntax(String transferSyntaxUID,
String description,
boolean explicitVR,
boolean bigEndian,
boolean encapsulatedPixelData,
boolean lossy,
String fileNameExtension)
Construct a Transfer Syntax using the specified UID and characteristics.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get a human-readable description of the Transfer Syntax.
|
String |
getFileNameExtension()
Get the file name extension appropriate for the Transfer Syntax.
|
String |
getUID()
Get the UID of the Transfer Syntax.
|
boolean |
isBigEndian()
Is the Transfer Syntax big endian ?
|
static boolean |
isBigEndian(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(String uid)
Does the Transfer Syntax encapsulate the pixel data ?
|
boolean |
isExplicitVR()
Is the Transfer Syntax explicit VR ?
|
static boolean |
isExplicitVR(String uid)
Is the Transfer Syntax with the specified UID explicit VR ?
|
boolean |
isImplicitVR()
Is the Transfer Syntax implicit VR ?
|
static boolean |
isImplicitVR(String uid)
Is the Transfer Syntax with the specified UID implicit VR ?
|
boolean |
isLittleEndian()
Is the Transfer Syntax little endian ?
|
static boolean |
isLittleEndian(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(String uid)
Does the Transfer Syntax encode the pixel data without encapsulation?
|
boolean |
isRecognized()
Is the Transfer Syntax recognized ?
|
String |
toString()
Get the Transfer Syntax as a string.
|
public static final String ImplicitVRLittleEndian
public static final String ExplicitVRLittleEndian
public static final String ExplicitVRBigEndian
public static final String Default
public static final String DeflatedExplicitVRLittleEndian
public static final String JPEGBaseline
public static final String JPEGExtended
public static final String JPEGLossless
public static final String JPEGLosslessSV1
public static final String JPEGLS
public static final String JPEGNLS
public static final String JPEG2000Lossless
public static final String JPEG2000
public static final String MPEG2MPML
public static final String MPEG2MPHL
public static final String MPEG4HP41
public static final String MPEG4HP41BD
public static final String PixelMedBzip2ExplicitVRLittleEndian
public static final String PixelMedEncapsulatedRawLittleEndian
protected String transferSyntaxUID
protected String description
protected boolean bigEndian
protected boolean explicitVR
protected boolean encapsulatedPixelData
protected boolean lossy
protected boolean recognized
protected String fileNameExtension
public TransferSyntax(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(String transferSyntaxUID, 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(String transferSyntaxUID, String description, boolean explicitVR, boolean bigEndian, boolean encapsulatedPixelData, boolean lossy, 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 String getUID()
Get the UID of the Transfer Syntax.
public String getDescription()
Get a human-readable description of the Transfer Syntax.
public boolean isRecognized()
Is the Transfer Syntax recognized ?
public boolean isBigEndian()
Is the Transfer Syntax big endian ?
public boolean isLittleEndian()
Is the Transfer Syntax little endian ?
public boolean isExplicitVR()
Is the Transfer Syntax explicit VR ?
public boolean isImplicitVR()
Is the Transfer Syntax implicit VR ?
public boolean isEncapsulated()
Does the Transfer Syntax encapsulate the pixel data ?
public boolean isNotEncapsulated()
Does the Transfer Syntax encode the pixel data without encapsulation?
public boolean isLossy()
Is the Transfer Syntax potentially lossy ?
public String getFileNameExtension()
Get the file name extension appropriate for the Transfer Syntax.
Will be "unk" if unrecognized.
public boolean isDeflated()
Does the Transfer Syntax use deflate compression ?
public boolean isBzip2ed()
Does the Transfer Syntax use bzip2 compression ?
public String toString()
Get the Transfer Syntax as a string.
public static boolean isExplicitVR(String uid)
Is the Transfer Syntax with the specified UID explicit VR ?
uid
- public static boolean isImplicitVR(String uid)
Is the Transfer Syntax with the specified UID implicit VR ?
uid
- public static boolean isBigEndian(String uid)
Is the Transfer Syntax with the specified UID big endian ?
uid
- public static boolean isLittleEndian(String uid)
Is the Transfer Syntax with the specified UID little endian ?
uid
- public static boolean isEncapsulated(String uid)
Does the Transfer Syntax encapsulate the pixel data ?
uid
- public static boolean isNotEncapsulated(String uid)
Does the Transfer Syntax encode the pixel data without encapsulation?
uid
-