Codota Logo
DicomDirWriter.deleteRecord
Code IndexAdd Codota to your IDE (free)

How to use
deleteRecord
method
in
org.dcm4che3.media.DicomDirWriter

Best Java code snippets using org.dcm4che3.media.DicomDirWriter.deleteRecord (Showing top 4 results out of 315)

  • Common ways to obtain DicomDirWriter
private void myMethod () {
DicomDirWriter d =
  • Codota IconFile file;DicomDirWriter.open(file)
  • Smart code suggestions by Codota
}
origin: dcm4che/dcm4che

  private boolean purge(Attributes rec, int[] count) throws IOException {
    boolean purge = true;
    while (rec != null) {
      if (purge(findLowerDirectoryRecordInUse(rec, false), count)
          && !rec.containsValue(Tag.ReferencedFileID)) {
        deleteRecord(rec);
        count[0]++;
      } else
        purge = false;
      rec = readNextDirectoryRecord(rec);
    }
    return purge;
  }
}
origin: dcm4che/dcm4che

public synchronized boolean deleteRecord(Attributes rec)
    throws IOException {
  if (rec.getInt(Tag.RecordInUseFlag, 0) == INACTIVE)
    return false; // already disabled
  for (Attributes lowerRec = readLowerDirectoryRecord(rec);
      lowerRec != null; 
      lowerRec = readNextDirectoryRecord(lowerRec))
    deleteRecord(lowerRec);
  rec.setInt(Tag.RecordInUseFlag, VR.US, INACTIVE);
  markAsDirty(rec);
  return true;
}
origin: dcm4che/dcm4che

  return 0;
out.deleteRecord(instRec);
System.out.print('x');
return 1;
origin: org.dcm4che.tool/dcm4che-tool-dcmdir

  return 0;
out.deleteRecord(instRec);
System.out.print('x');
return 1;
org.dcm4che3.mediaDicomDirWriterdeleteRecord

Popular methods of DicomDirWriter

  • addLowerDirectoryRecord
  • addRootDirectoryRecord
  • createEmptyDirectory
  • toFileIDs
  • commit
  • open
  • findLowerInstanceRecord
  • findPatientRecord
  • findSeriesRecord
  • findStudyRecord
  • purge
  • setEncodingOptions
  • purge,
  • setEncodingOptions,
  • <init>,
  • addRecord,
  • clearCache,
  • close,
  • createFileSetInformation,
  • findFirstRootDirectoryRecordInUse,
  • findLastLowerDirectoryRecord

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • 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
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now