Modifier and Type | Field and Description |
---|---|
boolean |
bigEndian |
private int |
length |
private int[] |
lengths |
static int |
MAGIC_LEN |
private long |
offset |
private long[] |
offsets |
String |
uri |
private int |
uriPathEnd |
String |
uuid |
Constructor and Description |
---|
BulkData(String uri,
long[] offsets,
int[] lengths,
boolean bigEndian) |
BulkData(String uri,
long offset,
int length,
boolean bigEndian) |
BulkData(String uuid,
String uri,
boolean bigEndian) |
Modifier and Type | Method and Description |
---|---|
private String |
appendQuery(String uri,
long[] offsets,
int[] lengths) |
int |
calcLength(DicomEncodingOptions encOpts,
boolean explicitVR,
VR vr) |
static Value |
deserializeFrom(ObjectInputStream ois) |
boolean |
equals(Object obj) |
static BulkData |
fromFragments(Fragments bulkDataFragments)
Returns a
BulkData instance combining all BulkData instances in bulkDataFragments . |
int |
getEncodedLength(DicomEncodingOptions encOpts,
boolean explicitVR,
VR vr) |
File |
getFile() |
String |
getURIOrUUID() |
boolean |
hasFragments()
Returns
true , if the URI of this BulkData instance specifies offset and length of individual
data fragments by Query Parameters offsets and lengths and therefore can be converted
by toFragments(java.lang.String, int, org.dcm4che3.data.VR) to a Fragments instance containing BulkData instances
referencing individual fragments. |
int |
hashCode() |
boolean |
isEmpty() |
int |
length() |
int[] |
lengths() |
long |
offset() |
long[] |
offsets() |
InputStream |
openStream() |
private static int[] |
parseInts(String s) |
private static long[] |
parseLongs(String s) |
private void |
parseURI(String uri) |
private void |
parseURIWithOffset(String uri,
int from) |
private void |
parseURIWithOffsets(String uri,
int from) |
void |
serializeTo(ObjectOutputStream oos) |
byte[] |
toBytes(VR vr,
boolean bigEndian) |
Fragments |
toFragments(String privateCreator,
int tag,
VR vr)
Returns a
Fragments instance with containing BulkData instances referencing
individual fragments, referenced by this BulkData instances. |
String |
toString() |
String |
uriWithoutQuery() |
void |
writeTo(DicomOutputStream out,
VR vr) |
public static final int MAGIC_LEN
public final boolean bigEndian
private int uriPathEnd
private long offset
private int length
private long[] offsets
private int[] lengths
public static BulkData fromFragments(Fragments bulkDataFragments)
BulkData
instance combining all BulkData
instances in bulkDataFragments
.bulkDataFragments
- Fragments
instance with BulkData
instances
referencing individual fragmentsBulkData
instance combining all BulkData
instances in bulkDataFragments
.ClassCastException
- if bulkDataFragments
contains byte[]
IllegalArgumentException
- if bulkDataFragments
contains URIs referencing different Resources
or without Query Parameter length
.public boolean hasFragments()
true
, if the URI of this BulkData
instance specifies offset and length of individual
data fragments by Query Parameters offsets
and lengths
and therefore can be converted
by toFragments(java.lang.String, int, org.dcm4che3.data.VR)
to a Fragments
instance containing BulkData
instances
referencing individual fragments.true
if this BulkData
instance can be converted to a Fragments
instance
by toFragments(java.lang.String, int, org.dcm4che3.data.VR)
public Fragments toFragments(String privateCreator, int tag, VR vr)
Fragments
instance with containing BulkData
instances referencing
individual fragments, referenced by this BulkData
instances.privateCreator
- tag
- vr
- Fragments
instance with containing BulkData
instances referencing
individual fragments, referenced by this BulkData
instancesUnsupportedOperationException,
- if the URI BulkData
instance does not specify
offset and length of individual data fragments by Query Parameters offsets
and lengths
private void parseURIWithOffset(String uri, int from)
private void parseURIWithOffsets(String uri, int from)
private static long[] parseLongs(String s)
private String appendQuery(String uri, long[] offsets, int[] lengths)
public long offset()
public int length()
public long[] offsets()
public int[] lengths()
public String getURIOrUUID()
public String uriWithoutQuery()
public InputStream openStream() throws IOException
IOException
public int calcLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
calcLength
in interface Value
public int getEncodedLength(DicomEncodingOptions encOpts, boolean explicitVR, VR vr)
getEncodedLength
in interface Value
public byte[] toBytes(VR vr, boolean bigEndian) throws IOException
toBytes
in interface Value
IOException
public void writeTo(DicomOutputStream out, VR vr) throws IOException
writeTo
in interface Value
IOException
public void serializeTo(ObjectOutputStream oos) throws IOException
IOException
public static Value deserializeFrom(ObjectInputStream ois) throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.