diff options
Diffstat (limited to 'pki/base/util/src/netscape/security/x509/GeneralSubtrees.java')
-rw-r--r-- | pki/base/util/src/netscape/security/x509/GeneralSubtrees.java | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/pki/base/util/src/netscape/security/x509/GeneralSubtrees.java b/pki/base/util/src/netscape/security/x509/GeneralSubtrees.java index a461773d8..332f61cdd 100644 --- a/pki/base/util/src/netscape/security/x509/GeneralSubtrees.java +++ b/pki/base/util/src/netscape/security/x509/GeneralSubtrees.java @@ -27,19 +27,19 @@ import netscape.security.util.PrettyPrintFormat; /** * Represent the GeneralSubtrees ASN.1 object. - * + * * @version 1.4 - * + * * @author Amit Kapoor * @author Hemma Prafullchandra */ public class GeneralSubtrees { - private Vector trees; + private Vector trees; private PrettyPrintFormat pp = new PrettyPrintFormat(":"); /** * The default constructor for the class. - * + * * @param trees the sequence of GeneralSubtree. */ public GeneralSubtrees(Vector trees) { @@ -48,7 +48,7 @@ public class GeneralSubtrees { /** * Create the object from the passed DER encoded form. - * + * * @param val the DER encoded form of the same. */ public GeneralSubtrees(DerValue val) throws IOException { @@ -67,7 +67,8 @@ public class GeneralSubtrees { * Return a printable string of the GeneralSubtree. */ public String toString() { - String s = " GeneralSubtrees:\n" + trees.toString() + "\n"; + String s = " GeneralSubtrees:\n" + trees.toString() + + "\n"; return (s); } @@ -75,28 +76,28 @@ public class GeneralSubtrees { public String toPrint(int indent) { String s = ""; - GeneralSubtree element; + GeneralSubtree element; - for (Enumeration e = trees.elements(); e.hasMoreElements();) { - element = (GeneralSubtree) e.nextElement(); - s = s + pp.indent(indent + 4) + element.toPrint(indent) + "\n"; - } + for (Enumeration e = trees.elements() ; e.hasMoreElements() ;) { + element = (GeneralSubtree) e.nextElement(); + s = s + pp.indent(indent+4)+ element.toPrint(indent) +"\n"; + } return (s); } /** * Encode the GeneralSubtrees. - * + * * @param out the DerOutputStrean to encode this object to. */ public void encode(DerOutputStream out) throws IOException { DerOutputStream seq = new DerOutputStream(); for (int i = 0; i < trees.size(); i++) { - ((GeneralSubtree) trees.elementAt(i)).encode(seq); + ((GeneralSubtree)trees.elementAt(i)).encode(seq); } - out.write(DerValue.tag_Sequence, seq); + out.write(DerValue.tag_Sequence,seq); } public Vector getSubtrees() { |