|
59 | 59 | public class DerOutputStream
|
60 | 60 | extends ByteArrayOutputStream implements DerEncoder {
|
61 | 61 | /**
|
62 |
| - * Construct an DER output stream. |
| 62 | + * Construct a DER output stream. |
63 | 63 | *
|
64 | 64 | * @param size how large a buffer to preallocate.
|
65 | 65 | */
|
66 | 66 | public DerOutputStream(int size) { super(size); }
|
67 | 67 |
|
68 | 68 | /**
|
69 |
| - * Construct an DER output stream. |
| 69 | + * Construct a DER output stream. |
70 | 70 | */
|
71 | 71 | public DerOutputStream() { }
|
72 | 72 |
|
73 | 73 | /**
|
74 |
| - * Writes tagged, pre-marshaled data. This calcuates and encodes |
| 74 | + * Writes tagged, pre-marshaled data. This calculates and encodes |
75 | 75 | * the length, so that the output data is the standard triple of
|
76 | 76 | * { tag, length, data } used by all DER values.
|
77 | 77 | *
|
@@ -175,7 +175,7 @@ public void putInteger(BigInteger i) throws IOException {
|
175 | 175 | /**
|
176 | 176 | * Marshals a DER integer on the output stream.
|
177 | 177 | *
|
178 |
| - * @param i the integer in bytes, equivalent to BigInteger::toByteArray. |
| 178 | + * @param buf the integer in bytes, equivalent to BigInteger::toByteArray. |
179 | 179 | */
|
180 | 180 | public void putInteger(byte[] buf) throws IOException {
|
181 | 181 | write(DerValue.tag_Integer);
|
@@ -461,8 +461,8 @@ public void putGeneralString(String s) throws IOException {
|
461 | 461 | * @param s the string to write
|
462 | 462 | * @param stringTag one of the DER string tags that indicate which
|
463 | 463 | * encoding should be used to write the string out.
|
464 |
| - * @param enc the name of the encoder that should be used corresponding |
465 |
| - * to the above tag. |
| 464 | + * @param charset the charset that should be used corresponding to |
| 465 | + * the above tag. |
466 | 466 | */
|
467 | 467 | private void writeString(String s, byte stringTag, Charset charset)
|
468 | 468 | throws IOException {
|
|
0 commit comments