public class Fragments extends ArrayList<Object> implements Value
Each item is either a byte[], BulkData or Value.NULL.
The first Item in the sequence of items before the encoded Pixel Data Stream
is a Basic Offset Table item. The value of the Basic Offset Table, however,
is not required to be present. The first item is then Value.NULL.
Depending on the transfer syntax, a frame may be entirely contained within a single fragment, or may span multiple fragments to support buffering during compression or to avoid exceeding the maximum size of a fixed length fragment. A recipient can detect fragmentation of frames by comparing the number of fragments (the number of Items minus one for the Basic Offset Table) with the number of frames.
See also DICOM Part 5: A.4 TRANSFER SYNTAXES FOR ENCAPSULATION OF ENCODED PIXEL DATA and DICOM Part 5: 8.2 Native or Encapsulated Format Encoding
| Modifier and Type | Field and Description |
|---|---|
private boolean |
bigEndian |
private String |
privateCreator |
private static long |
serialVersionUID |
private int |
tag |
private VR |
vr |
modCount| Constructor and Description |
|---|
Fragments(String privateCreator,
int tag,
VR vr,
boolean bigEndian,
int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object frag) |
boolean |
add(Object frag) |
boolean |
addAll(Collection<? extends Object> c) |
boolean |
addAll(int index,
Collection<? extends Object> c) |
boolean |
bigEndian() |
int |
calcLength(DicomEncodingOptions encOpts,
boolean explicitVR,
VR vr) |
boolean |
equals(Object obj) |
int |
getEncodedLength(DicomEncodingOptions encOpts,
boolean explicitVR,
VR vr) |
int |
hashCode() |
private int |
itemHashCode(Object e) |
private boolean |
itemsEqual(Object o1,
Object o2) |
String |
privateCreator() |
int |
tag() |
byte[] |
toBytes(VR vr,
boolean bigEndian) |
String |
toString() |
VR |
vr() |
void |
writeTo(DicomOutputStream out,
VR vr) |
clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAllparallelStream, streamprivate static final long serialVersionUID
private final String privateCreator
private final int tag
private final boolean bigEndian
public String privateCreator()
public final int tag()
public final boolean bigEndian()
public String toString()
toString in class AbstractCollection<Object>public boolean addAll(Collection<? extends Object> c)
public boolean addAll(int index, Collection<? extends Object> c)
public void writeTo(DicomOutputStream out, VR vr) throws IOException
writeTo in interface ValueIOExceptionpublic int calcLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
calcLength in interface Valuepublic int getEncodedLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
getEncodedLength in interface Valuepublic byte[] toBytes(VR vr, boolean bigEndian) throws IOException
toBytes in interface ValueIOExceptionpublic boolean equals(Object obj)
equals in interface Collection<Object>equals in interface List<Object>equals in class AbstractList<Object>public int hashCode()
hashCode in interface Collection<Object>hashCode in interface List<Object>hashCode in class AbstractList<Object>private boolean itemsEqual(Object o1, Object o2)
private int itemHashCode(Object e)
Copyright © 2017 dcm4che.org. All rights reserved.