org.dicom4j.dicom.uniqueidentifiers
Class TransferSyntax

java.lang.Object
  extended by org.dicom4j.dicom.uniqueidentifiers.support.UniqueIdentifier
      extended by org.dicom4j.dicom.uniqueidentifiers.TransferSyntax

public class TransferSyntax
extends UniqueIdentifier

DICOM Transfer Syntax

Since:
0.0.6
Author:
Laurent Lecomte

Field Summary
static TransferSyntax Default
          Default DICOM transfer syntax (ie: ImplicitVRLittleEndian)
static TransferSyntax ExplicitVRBigEndian
          Explicit VR BigEndian
static TransferSyntax ExplicitVRLittleEndian
          Explicit VR Little Endian
static TransferSyntax ImplicitVRLittleEndian
          Implicit VR Little Endian
static TransferSyntax JPEG2000
           
static TransferSyntax JPEG2000Lossless
          JPEG2000Lossless Transfer Syntax
static TransferSyntax JPEGBaseline
           
static TransferSyntax JPEGExtended
           
static TransferSyntax JPEGLossless
           
static TransferSyntax JPEGLosslessSV1
           
static TransferSyntax JPEGLS
           
static TransferSyntax JPEGNLS
           
static TransferSyntax MPEG2MPML
          MPEG2 MPML
 
Constructor Summary
TransferSyntax(String uid)
           Construct a Transfer Syntax using the specified UID, automatically determining its characteristics.
TransferSyntax(String uid, String desc, boolean explicit, ByteOrder aByteOrder, boolean encapsulated)
           Construct a Transfer Syntax using the specified UID and characteristics.
 
Method Summary
static TransferSyntax addTransferSyntax(TransferSyntax transferSyntax)
          add a new TransferSyntax to the list of known TransferSyntax
 ByteOrder getByteOrder()
          get the ByteOrder
 boolean isDeflated()
           Does the Transfer Syntax use deflate compression ?
 boolean isEncapsulated()
           Does the Transfer Syntax encapsulate the pixel data ?
 boolean isExplicitVR()
           Is the Transfer Syntax explicit VR ?
 boolean isNotEncapsulated()
           Does the Transfer Syntax encode the pixel data without encapsulation?
 String toString()
          get the Transfer Syntax as a string.
static String toString(String value)
          get a TransferSyntax as a human readable value (ie: the name)
 
Methods inherited from class org.dicom4j.dicom.uniqueidentifiers.support.UniqueIdentifier
getName, getType, getUID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ExplicitVRBigEndian

public static final TransferSyntax ExplicitVRBigEndian
Explicit VR BigEndian


ExplicitVRLittleEndian

public static final TransferSyntax ExplicitVRLittleEndian
Explicit VR Little Endian


ImplicitVRLittleEndian

public static final TransferSyntax ImplicitVRLittleEndian
Implicit VR Little Endian


JPEG2000

public static final TransferSyntax JPEG2000

JPEG2000Lossless

public static final TransferSyntax JPEG2000Lossless
JPEG2000Lossless Transfer Syntax


JPEGBaseline

public static final TransferSyntax JPEGBaseline

JPEGExtended

public static final TransferSyntax JPEGExtended

JPEGLossless

public static final TransferSyntax JPEGLossless

JPEGLosslessSV1

public static final TransferSyntax JPEGLosslessSV1

JPEGLS

public static final TransferSyntax JPEGLS

JPEGNLS

public static final TransferSyntax JPEGNLS

MPEG2MPML

public static final TransferSyntax MPEG2MPML
MPEG2 MPML


Default

public static final TransferSyntax Default
Default DICOM transfer syntax (ie: ImplicitVRLittleEndian)

Constructor Detail

TransferSyntax

public TransferSyntax(String uid)

Construct a Transfer Syntax using the specified UID, automatically determining its characteristics.

Parameters:
uid - the UID to use to refer to this transfer syntax

TransferSyntax

public TransferSyntax(String uid,
                      String desc,
                      boolean explicit,
                      ByteOrder aByteOrder,
                      boolean encapsulated)

Construct a Transfer Syntax using the specified UID and characteristics.

Parameters:
uid - the UID to use to refer to this transfer syntax
desc - the fName of this transfer syntax
explicit - true if an explicit VR transfer syntax
big - true if big-endian transfer syntax
encapsulated - true if a pixel data encapsulated transfer syntax
Method Detail

getByteOrder

public ByteOrder getByteOrder()
get the ByteOrder

Returns:
the ByteOrder

isDeflated

public boolean isDeflated()

Does the Transfer Syntax use deflate compression ?

Returns:
true if deflated

isEncapsulated

public boolean isEncapsulated()

Does the Transfer Syntax encapsulate the pixel data ?

Returns:
true if encapsulate

isExplicitVR

public boolean isExplicitVR()

Is the Transfer Syntax explicit VR ?

Returns:
true if explicit VR

isNotEncapsulated

public boolean isNotEncapsulated()

Does the Transfer Syntax encode the pixel data without encapsulation?

Returns:
true if not encapsulated

toString

public String toString()

get the Transfer Syntax as a string.

Overrides:
toString in class UniqueIdentifier
Returns:
the TransferSyntax as a string

addTransferSyntax

public static TransferSyntax addTransferSyntax(TransferSyntax transferSyntax)
add a new TransferSyntax to the list of known TransferSyntax

Parameters:
transferSyntax - the TransferSyntax to add
Returns:
the added TransferSyntax

toString

public static String toString(String value)
get a TransferSyntax as a human readable value (ie: the name)

Parameters:
value - the TransferSyntax UID
Returns:
the TransferSyntax a as string


Copyright © 2009 dicom4j. All Rights Reserved.