code: public void writeTo(OutputStream out) throws TLVParserException {
          Util.notNull(out, "Output stream");
          try {
              assertActualContentLengthIsInTLVLimits(getContentLength());
              out.write(encodeHeader());
              out.write(getContent());
          } catch (IOException e) {
              throw new TLVParserException("Writing TLV element (" + convertHeader() + ")  to output stream failed", e);
          }
      }
docs: Writes the encoded TLV element to the specified output stream.
  
  @param out
  the output stream to which to write the TLV element data.
  
  @throws TLVParserException
  when I/O error occurred or TLV encoding failed.