ImplicitOutputStream must intercept all calls to underlying stream
@@ -143,8 +143,8 @@ void writeEncoded(int flags, int tagNo, byte[] bytes)
protected void writeNull()
throws IOException
{
- os.write(BERTags.NULL);
- os.write(0x00);
+ write(BERTags.NULL);
+ write(0x00);
}
public void writeObject(ASN1Encodable obj) throws IOException
@@ -218,6 +218,11 @@ public void write(int b) throws IOException
}
}
+ void write(byte[] bytes) throws IOException
+ {
+ write(bytes, 0, bytes.length);
+ }
+
void write(byte[] bytes, int off, int len) throws IOException
{
if (len > 0)
