Class DOMDocument
java.lang.Object
eu.europa.esig.dss.xml.utils.DOMDocument
- All Implemented Interfaces:
Serializable
This class allows handling of an
org.w3c.dom.Node as a eu.europa.esig.dss.model.DSSDocument.
The class handles the Node in memory, and reads its data only on request.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOMDocument(Node node) Default constructor to create aDOMDocumentfrom anorg.w3c.dom.Element.DOMDocument(Node node, String name) Constructor to create aDOMDocumentwith name provided. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected byte[]getBytes()Gets cached binary array as the result of the Element serializationeu.europa.esig.dss.model.DigestgetDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) byte[]getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) eu.europa.esig.dss.enumerations.MimeTypegetName()getNode()Gets the Node used to define the documentinthashCode()voidvoidsetMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) voidtoString()voidwriteTo(OutputStream arg0)
-
Field Details
-
digestMap
-
mimeType
protected eu.europa.esig.dss.enumerations.MimeType mimeType -
name
-
-
Constructor Details
-
DOMDocument
-
DOMDocument
-
-
Method Details
-
getNode
-
openStream
-
getBytes
protected byte[] getBytes()Gets cached binary array as the result of the Element serialization- Returns:
- byte array
-
equals
-
hashCode
public int hashCode() -
save
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
getMimeType
public eu.europa.esig.dss.enumerations.MimeType getMimeType() -
setMimeType
public void setMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) -
getName
-
setName
-
getDigest
public eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
getDigestValue
public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
toString
-