public class ContentHandlerAdapter extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
addBulkDataReferences |
private boolean |
bigEndian |
private ByteArrayOutputStream |
bout |
private BulkData |
bulkData |
private char[] |
carry |
private int |
carryLen |
private Fragments |
dataFragments |
private Attributes |
fmi |
private boolean |
inlineBinary |
private LinkedList<Attributes> |
items |
private PersonName |
pn |
private PersonName.Group |
pnGroup |
private String |
privateCreator |
private boolean |
processCharacters |
private StringBuilder |
sb |
private LinkedList<Sequence> |
seqs |
private int |
tag |
private ArrayList<String> |
values |
private VR |
vr |
Constructor and Description |
---|
ContentHandlerAdapter(Attributes attrs) |
ContentHandlerAdapter(Attributes attrs,
boolean addBulkDataReferences) |
Modifier and Type | Method and Description |
---|---|
private void |
bulkData(String uuid,
String uri) |
void |
characters(char[] ch,
int offset,
int len) |
private void |
endDataFragment() |
private void |
endDicomAttribute() |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
private void |
endInlineBinary() |
private void |
endItem() |
private void |
endPersonName() |
private void |
endPNComponent(PersonName.Component pnComp) |
private void |
endValue() |
private byte[] |
getBytes() |
Attributes |
getFileMetaInformation() |
private String |
getString() |
private String[] |
getStrings() |
private static int |
removeWhitespaces(char[] ch,
int offset,
int len) |
private void |
startDataFragment(int number) |
private void |
startDicomAttribute(int tag,
String privateCreator,
String vr) |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
private void |
startInlineBinary() |
private void |
startItem(int number) |
private void |
startPersonName(int number) |
private void |
startPNGroup(PersonName.Group pnGroup) |
private void |
startText() |
private void |
startValue(int number) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
private Attributes fmi
private final boolean bigEndian
private final boolean addBulkDataReferences
private final LinkedList<Attributes> items
private final LinkedList<Sequence> seqs
private final ByteArrayOutputStream bout
private final char[] carry
private int carryLen
private final StringBuilder sb
private PersonName pn
private PersonName.Group pnGroup
private int tag
private String privateCreator
private Fragments dataFragments
private boolean processCharacters
private boolean inlineBinary
public ContentHandlerAdapter(Attributes attrs, boolean addBulkDataReferences)
public ContentHandlerAdapter(Attributes attrs)
public Attributes getFileMetaInformation()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
private void startInlineBinary()
private void startText()
private void startDicomAttribute(int tag, String privateCreator, String vr)
private void startDataFragment(int number)
private void startItem(int number)
private void startValue(int number)
private void startPersonName(int number)
private void startPNGroup(PersonName.Group pnGroup)
public void characters(char[] ch, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
private static int removeWhitespaces(char[] ch, int offset, int len)
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
private void endDataFragment()
private void endDicomAttribute()
private void endItem()
private void endInlineBinary() throws SAXException
SAXException
private void endPersonName()
private void endValue()
private void endPNComponent(PersonName.Component pnComp)
private byte[] getBytes()
private String[] getStrings()
Copyright © 2017 dcm4che.org. All rights reserved.