code: protected void write(BufferedWriter out, String type, byte[] data) throws IOException
      {
          writeHeader(out, type);
          out.write(this.base64.encode(data, 64));
          out.newLine();
          writeFooter(out, type);
      }
docs: Write data encoded based64 between PEM line headers.
  
  @param out the output buffered writer to write to.
  @param type the type to be written in the header.
  @param data the bytes data to store encoded.
  @throws IOException on error.