Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/java/org/bouncycastle/bcpg/BCPGObject.java')
-rw-r--r--pg/src/main/java/org/bouncycastle/bcpg/BCPGObject.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/pg/src/main/java/org/bouncycastle/bcpg/BCPGObject.java b/pg/src/main/java/org/bouncycastle/bcpg/BCPGObject.java
deleted file mode 100644
index 1018f189..00000000
--- a/pg/src/main/java/org/bouncycastle/bcpg/BCPGObject.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package org.bouncycastle.bcpg;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-/**
- * Base class for a PGP object.
- */
-public abstract class BCPGObject
-{
- public byte[] getEncoded()
- throws IOException
- {
- ByteArrayOutputStream bOut = new ByteArrayOutputStream();
- BCPGOutputStream pOut = new BCPGOutputStream(bOut);
-
- pOut.writeObject(this);
-
- return bOut.toByteArray();
- }
-
- public abstract void encode(BCPGOutputStream out)
- throws IOException;
-}