Encode contents octets directly
@@ -275,20 +275,11 @@ int encodedLength()
return 1 + StreamUtil.calculateBodyLength(length) + length;
}
- void encode(
- ASN1OutputStream out)
- throws IOException
+ void encode(ASN1OutputStream out) throws IOException
{
out.write(BERTags.UTC_TIME);
-
- int length = time.length;
-
- out.writeLength(length);
-
- for (int i = 0; i != length; i++)
- {
- out.write((byte)time[i]);
- }
+ out.writeLength(time.length);
+ out.write(time, 0, time.length);
}
boolean asn1Equals(
