public class DicomOutputStream extends FilterOutputStream
Modifier and Type | Field and Description |
---|---|
private boolean |
bigEndian |
private byte[] |
buf |
private static byte[] |
DICM |
private DicomEncodingOptions |
encOpts |
private boolean |
explicitVR |
private byte[] |
preamble |
out
Constructor and Description |
---|
DicomOutputStream(File file) |
DicomOutputStream(OutputStream out,
String tsuid) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish() |
DicomEncodingOptions |
getEncodingOptions() |
boolean |
isBigEndian() |
boolean |
isExplicitVR() |
void |
setEncodingOptions(DicomEncodingOptions encOpts) |
void |
setPreamble(byte[] preamble) |
private void |
switchTransferSyntax(String tsuid) |
void |
write(byte[] b,
int off,
int len) |
void |
writeAttribute(int tag,
VR vr,
byte[] val) |
void |
writeAttribute(int tag,
VR vr,
Object value,
SpecificCharacterSet cs) |
void |
writeAttribute(int tag,
VR vr,
Value val) |
void |
writeCommand(Attributes cmd) |
void |
writeDataset(Attributes fmi,
Attributes dataset) |
void |
writeDatasetWithFMI(DatasetWithFMI datasetWithFMI) |
void |
writeFileMetaInformation(Attributes fmi) |
void |
writeGroupLength(int tag,
int len) |
void |
writeHeader(int tag,
VR vr,
int len) |
flush, write, write
private static final byte[] DICM
private byte[] preamble
private boolean explicitVR
private boolean bigEndian
private DicomEncodingOptions encOpts
private final byte[] buf
public DicomOutputStream(OutputStream out, String tsuid) throws IOException
IOException
public DicomOutputStream(File file) throws IOException
IOException
public final void setPreamble(byte[] preamble)
public final boolean isExplicitVR()
public final boolean isBigEndian()
public final DicomEncodingOptions getEncodingOptions()
public final void setEncodingOptions(DicomEncodingOptions encOpts)
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void writeCommand(Attributes cmd) throws IOException
IOException
public void writeFileMetaInformation(Attributes fmi) throws IOException
IOException
public void writeDataset(Attributes fmi, Attributes dataset) throws IOException
IOException
public void writeDatasetWithFMI(DatasetWithFMI datasetWithFMI) throws IOException
IOException
private void switchTransferSyntax(String tsuid) throws IOException
IOException
public void writeHeader(int tag, VR vr, int len) throws IOException
IOException
public void writeAttribute(int tag, VR vr, Object value, SpecificCharacterSet cs) throws IOException
IOException
public void writeAttribute(int tag, VR vr, byte[] val) throws IOException
IOException
public void writeAttribute(int tag, VR vr, Value val) throws IOException
IOException
public void writeGroupLength(int tag, int len) throws IOException
IOException
public void finish() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
Copyright © 2017 dcm4che.org. All rights reserved.