public class DicomRedactor
extends java.lang.Object
| Constructor and Description |
|---|
DicomRedactor(DicomConfigProtos.DicomConfig config)
Constructs a DicomRedactor for the provided config.
|
DicomRedactor(DicomConfigProtos.DicomConfig config,
java.lang.String prefix)
Constructs a DicomRedactor for the provided config and prefix for UID replacement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
redact(java.io.InputStream inStream,
java.io.OutputStream outStream)
Redact the given DICOM input stream, and write the result to the given output stream.
|
public DicomRedactor(DicomConfigProtos.DicomConfig config) throws java.lang.Exception
config - controls the redaction process.java.lang.IllegalArgumentException - if the configuration structure is invalid.java.lang.Exceptionpublic DicomRedactor(DicomConfigProtos.DicomConfig config, java.lang.String prefix) throws java.lang.Exception
config - controls the redaction process.prefix - is the prefix to apply before every new generated UID.java.lang.IllegalArgumentException - if the configuration structure is invalid.java.lang.Exceptionpublic void redact(java.io.InputStream inStream,
java.io.OutputStream outStream)
throws java.io.IOException,
java.lang.IllegalArgumentException
inStream - the DICOM input stream to read.outStream - the output stream to write the result to.java.io.IOException - if the input stream cannot be read or the output stream cannot be written.java.lang.IllegalArgumentException - if there is an error redacting the object.