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, writeprivate 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
IOExceptionpublic DicomOutputStream(File file) throws IOException
IOExceptionpublic 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 FilterOutputStreamIOExceptionpublic void writeCommand(Attributes cmd) throws IOException
IOExceptionpublic void writeFileMetaInformation(Attributes fmi) throws IOException
IOExceptionpublic void writeDataset(Attributes fmi, Attributes dataset) throws IOException
IOExceptionpublic void writeDatasetWithFMI(DatasetWithFMI datasetWithFMI) throws IOException
IOExceptionprivate void switchTransferSyntax(String tsuid) throws IOException
IOExceptionpublic void writeHeader(int tag, VR vr, int len) throws IOException
IOExceptionpublic void writeAttribute(int tag, VR vr, Object value, SpecificCharacterSet cs) throws IOException
IOExceptionpublic void writeAttribute(int tag, VR vr, byte[] val) throws IOException
IOExceptionpublic void writeAttribute(int tag, VR vr, Value val) throws IOException
IOExceptionpublic void writeGroupLength(int tag, int len) throws IOException
IOExceptionpublic void finish() throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2017 dcm4che.org. All rights reserved.