diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2008-11-25 12:04:30 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2008-11-25 12:04:30 +0000 |
commit | 13d6dc3a6a5e8bd3c17997351a0e6f087eb301a2 (patch) | |
tree | 3ed3bcd97f1980169ef095a49f7facc8a0df0465 /src/main/java/com/lowagie/bc/asn1/ASN1Encodable.java | |
parent | c68ad0ec056b37c82debebcecfcde1866d61b4d9 (diff) | |
download | pdf-as-3-13d6dc3a6a5e8bd3c17997351a0e6f087eb301a2.tar.gz pdf-as-3-13d6dc3a6a5e8bd3c17997351a0e6f087eb301a2.tar.bz2 pdf-as-3-13d6dc3a6a5e8bd3c17997351a0e6f087eb301a2.zip |
Removing itext from source.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@302 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/com/lowagie/bc/asn1/ASN1Encodable.java')
-rw-r--r-- | src/main/java/com/lowagie/bc/asn1/ASN1Encodable.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/main/java/com/lowagie/bc/asn1/ASN1Encodable.java b/src/main/java/com/lowagie/bc/asn1/ASN1Encodable.java deleted file mode 100644 index 01e0bdc..0000000 --- a/src/main/java/com/lowagie/bc/asn1/ASN1Encodable.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.lowagie.bc.asn1;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-/**
- * Abstract Syntax Notation One (ASN.1) is a formal language for abstractly describing messages to be exchanged between distributed computer systems.
- */
-public abstract class ASN1Encodable
- implements DEREncodable
-{
- /**
- * Encodes the ASN1Encodable object.
- * @return an encoded bytearray
- * @throws IOException
- */
- public byte[] getEncoded()
- throws IOException
- {
- ByteArrayOutputStream bOut = new ByteArrayOutputStream();
- ASN1OutputStream aOut = new ASN1OutputStream(bOut);
-
- aOut.writeObject(this);
-
- return bOut.toByteArray();
- }
-
- /**
- * @see java.lang.Object#hashCode()
- */
- public int hashCode()
- {
- return this.getDERObject().hashCode();
- }
-
- /**
- * @see java.lang.Object#equals(java.lang.Object)
- */
- public boolean equals(
- Object o)
- {
- if ((o == null) || !(o instanceof DEREncodable))
- {
- return false;
- }
-
- DEREncodable other = (DEREncodable)o;
-
- return this.getDERObject().equals(other.getDERObject());
- }
-
- /**
- * @see com.lowagie.bc.asn1.DEREncodable#getDERObject()
- */
- public DERObject getDERObject()
- {
- return this.toASN1Object();
- }
-
- /**
- * Abstract method that returns the object as an ASN1 object.
- * @return an encodable object
- */
- public abstract DERObject toASN1Object();
-}
|