congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DicomOutputStream.writeDicomFile
Code IndexAdd Tabnine to your IDE (free)

How to use
writeDicomFile
method
in
org.dcm4che2.io.DicomOutputStream

Best Java code snippets using org.dcm4che2.io.DicomOutputStream.writeDicomFile (Showing top 2 results out of 315)

origin: dcm4che/dcm4che-core

public DicomDirWriter(File file, FileSetInformation fileSetInfo)
throws IOException {
super(new RandomAccessFile(file, "rw"), fileSetInfo);
this.file = file;
// ensure fileSetInfo represents empty file-set 
fileSetInfo.setOffsetFirstRootRecord(0);
fileSetInfo.setOffsetLastRootRecord(0);
raf.setLength(0);
out = new DicomOutputStream(raf);
out.setExplicitSequenceLength(true);
out.setExplicitItemLength(true);
out.writeDicomFile(fileSetInfo.getDicomObject());
out.writeHeader(Tag.DirectoryRecordSequence, VR.SQ, 0);
this.firstRecordPos = (int) out.getStreamPosition();
this.recordSeqLen = 0;
}
origin: dcm4che/dcm4che-imageio

dos.setAutoFinish(false);
if( dmeta.isFileMetaInfoIncluded() ) {
  dos.writeDicomFile(dobj);
} else {
  dos.writeDataset(dobj, dobj.getString(Tag.TransferSyntaxUID));
org.dcm4che2.ioDicomOutputStreamwriteDicomFile

Javadoc

Write a DICOM object to the output stream using the specified DicomObject to obtain the transfer syntax UID and other attributes.

Popular methods of DicomOutputStream

  • <init>
  • writeDataset
    Write a DICOM dataset to the output stream.
  • finish
    Finishes writing compressed data to the output stream without closing the underlying stream. Use thi
  • getTransferSyntax
  • setTransferSyntax
  • write
  • writeHeader
  • close
  • createItemInfo
  • flush
  • getStreamPosition
  • isExplicitItemLength
  • getStreamPosition,
  • isExplicitItemLength,
  • isExplicitItemLengthIfZero,
  • isExplicitSequenceLength,
  • isExplicitSequenceLengthIfZero,
  • isIncludeGroupLength,
  • needItemInfo,
  • serializeDicomObject,
  • setAutoFinish

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now