Methods Summary |
---|
public java.io.OutputStream | getRawOutputStream()
return _out;
|
protected void | writeBerBody(java.io.InputStream contentStream)
int ch;
while ((ch = contentStream.read()) >= 0)
{
_out.write(ch);
}
|
protected void | writeBerEnd()
_out.write(0x00);
_out.write(0x00);
if (_tagged && _isExplicit) // write extra end for tag header
{
_out.write(0x00);
_out.write(0x00);
}
|
protected void | writeBerHeader(int tag)
int tagNum = _tagNo | BerTag.TAGGED;
if (_tagged)
{
if (_isExplicit)
{
writeHdr(tagNum | BerTag.CONSTRUCTED);
writeHdr(tag);
}
else
{
if ((tag & BerTag.CONSTRUCTED) != 0)
{
writeHdr(tagNum | BerTag.CONSTRUCTED);
}
else
{
writeHdr(tagNum);
}
}
}
else
{
writeHdr(tag);
}
|
private void | writeHdr(int tag)
_out.write(tag);
_out.write(0x80);
|