Write VCF header with the specified print writer.

@param header VCF header, must not be null
@param writer print writer to write VCF with, must not be null
19724
public static void writeHeader(final VcfHeader header, final PrintWriter writer) {
        checkNotNull(header);
        checkNotNull(writer);

        for (String meta : header.getMeta()) {
            writer.println(meta);
        }
    }
899821
private static void writeRow(final PrintWriter writer, final UicStats.Stat stat) {
		writer.print("<tr>");
		writer.print("<td>" + stat.getClassName() + "</td>");
		writer.print("<td>" + stat.getModelStateAsString() + "</td>");

		if (stat.getSerializedSize() > 0) {
			writer.print("<td>" + stat.getSerializedSize() + "</td>");
		} else {
			writer.print("<td>&#160;</td>");
		}

		writer.print("<td>" + stat.getRef() + "</td>");
		writer.print("<td>" + stat.getName() + "</td>");

		if (stat.getComment() == null) {
			writer.print("<td>&#160;</td>");
		} else {
			writer.print("<td>" + stat.getComment() + "</td>");
		}

		writer.println("</tr>");
	}
937403
def write(self, fh):
        
        fh.write(GFF3_HEADER+"\n")
        for root in sorted(self.roots, key=self._recSortKey):
            self._writeRec(fh, root)
1023448
public void write(Writer writer, String enclosingNamespace) throws IOException {
        for (CharSequence csq : sb.getAsList()) {
            if (csq instanceof XmlStringBuilder) {
                ((XmlStringBuilder) csq).write(writer, enclosingNamespace);
            }
            else if (csq instanceof XmlNsAttribute) {
                XmlNsAttribute xmlNsAttribute = (XmlNsAttribute) csq;
                if (!xmlNsAttribute.value.equals(enclosingNamespace)) {
                    writer.write(xmlNsAttribute.toString());
                    enclosingNamespace = xmlNsAttribute.value;
                }
            }
            else {
                writer.write(csq.toString());
            }
        }
    }
598919
public void printHeader(PrintWriter pw)
   {
      pw.print(description);
      pw.print("-Min,");
      pw.print(description);
      pw.print("-Max,");
      pw.print(description);
      pw.print("-Total,");
      pw.print(description);
      pw.print("-Avg,");
      pw.print(description);
      pw.print("-Times");
   }
1281570
public static void writeFrameHeader(ByteBuf out, int payloadLength, byte type,
            Http2Flags flags, int streamId) {
        out.ensureWritable(FRAME_HEADER_LENGTH + payloadLength);
        writeFrameHeaderInternal(out, payloadLength, type, flags, streamId);
    }
856051
final void writeHeader()
                    throws ObjectManagerException
    {
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this,
                        cclass,
                        "writeHeader");

        // Write the header.
        sharedBuffer.clear();
        sharedBuffer.putInt(version);
        for (int i = 0; i < signature.length(); i++)
            sharedBuffer.putChar(signature.charAt(i));
        sharedBuffer.putLong(objectStoreIdentifier);
        sharedBuffer.putLong(((Directory.Node) directory.root).byteAddress);
        sharedBuffer.putLong(((Directory.Node) directory.root).length);
        sharedBuffer.putInt(directory.getMinimumNodeSize());
        if (freeSpaceStoreArea == null) {
            sharedBuffer.putLong(0);
            sharedBuffer.putLong(0);
        } else {
            sharedBuffer.putLong(freeSpaceStoreArea.byteAddress);
            sharedBuffer.putLong(freeSpaceStoreArea.length);
        }
        sharedBuffer.putLong((long) freeSpaceByLength.size());
        sharedBuffer.putLong(sequenceNumber);
        sharedBuffer.putLong(storeFileSizeUsed);
        sharedBuffer.putLong(minimumStoreFileSize);
        sharedBuffer.putLong(maximumStoreFileSize);
        sharedBuffer.putInt(cachedManagedObjectsSize);

        sharedBuffer.flip();
        writeBuffer(sharedBuffer,
                    0);

        // Write the header twice.
        sharedBuffer.flip();
        writeBuffer(sharedBuffer,
                    pageSize);

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this,
                       cclass,
                       "writeHeader"
                            );
    }
90964
protected void writeDocumentHeader() throws IOException {
        writer.append("= ").append(this.configuration.getTitle()).append(NEW_LINE);

        if(isAttributesFileSet()) {
            writer.append("include::").append(this.configuration.getAsciiDocAttributesFile()).append("[]").append(NEW_LINE);
        }
        if (isAsciidoctorOutput()) {
            writer.append(":icons: font").append(NEW_LINE);
        }

        writer.append(NEW_LINE);
    }
829916
public void writeToWriter(Writer out) throws IOException
  {
    int ch;

    while ((ch = readChar()) >= 0) {
      out.write((char) ch);
    }
  }
1344414
private void writeHeader(Writer writer)throws IOException {
        writer.write(ICAL_BEGIN);
        writer.write(COLON);
        writer.write(ICAL_VTIMEZONE);
        writer.write(NEWLINE);
        writer.write(ICAL_TZID);
        writer.write(COLON);
        writer.write(tz.getID());
        writer.write(NEWLINE);
        if (tzurl != null) {
            writer.write(ICAL_TZURL);
            writer.write(COLON);
            writer.write(tzurl);
            writer.write(NEWLINE);
        }
        if (lastmod != null) {
            writer.write(ICAL_LASTMOD);
            writer.write(COLON);
            writer.write(getUTCDateTimeString(lastmod.getTime()));
            writer.write(NEWLINE);
        }
    }
1139109
public void writeHeader(Writer writer) 
        throws IOException
    {
        if (_state!=__MSG_EDITABLE)
            throw new IllegalStateException(__state[_state]+
                                            " is not EDITABLE");
        if (_header==null)
            throw new IllegalStateException("Response is destroyed");

        if (getHttpRequest().getDotVersion()>=0)
        {
            _state=__MSG_BAD;
            writer.write(_version);
            writer.write(' ');
            writer.write('0'+((_status/100)%10));
            writer.write('0'+((_status/10)%10));
            writer.write('0'+(_status%10));
            writer.write(' ');
            writer.write(getReason());
            writer.write(HttpFields.__CRLF);
            _header.write(writer);
        }
        _state=__MSG_SENDING;
    }
940106
public void writeHeader(WritableByteChannel out) throws IOException {
		// take care of the annoying case where no records have been added...
		if (headerLength == -1) {
			headerLength = MINIMUM_HEADER;
		}
		ByteBuffer buffer = ByteBuffer.allocateDirect(headerLength);
		buffer.order(ByteOrder.LITTLE_ENDIAN);

		// write the output file type.
		buffer.put(MAGIC);

		// write the date stuff
		Calendar c = Calendar.getInstance();
		c.setTime(new Date());
		buffer.put((byte) (c.get(Calendar.YEAR) % 100));
		buffer.put((byte) (c.get(Calendar.MONTH) + 1));
		buffer.put((byte) (c.get(Calendar.DAY_OF_MONTH)));

		// write the number of records in the datafile.
		buffer.putInt(recordCnt);

		// write the length of the header structure.
		buffer.putShort((short) headerLength);

		// write the length of a record
		buffer.putShort((short) recordLength);

		// // write the reserved bytes in the header
		buffer.position(buffer.position() + 17);
        // skip / skip the reserved bytes in the header.
        // write Language driver
        buffer.put(getEncodingByte());
        // skip reserved
        buffer.position(buffer.position() + 2);

		// write all of the header records
		int tempOffset = 0;
        for (DbaseField field : fields) {

            // write the field name
            byte[] fieldName = field.fieldName.getBytes(fileEncoding);
            for (int j = 0; j < 11; j++) {
                if (fieldName.length > j) {
                    buffer.put(fieldName[j]);
                } else {
                    buffer.put((byte) 0);
                }
            }

            // write the field type
            buffer.put((byte) field.fieldType);
            // // write the field data address, offset from the start of the
            // record.
            buffer.putInt(tempOffset);
            tempOffset += field.fieldLength;

            // write the length of the field.
            buffer.put((byte) field.fieldLength);

            // write the decimal count.
            buffer.put((byte) field.decimalCount);

            // write the reserved bytes.
            // for (in j=0; jj<14; j++) out.writeByteLE(0);
            buffer.position(buffer.position() + 14);
        }

		// write the end of the field definitions marker
		buffer.put((byte) 0x0D);

		buffer.position(0);

		int r = buffer.remaining();
                do {
                        r -= out.write(buffer);
                } while (r > 0);
	}
676970
public void write(final Writer outputWriter) throws IOException {
    try (final DataInputStream keyStream = entry.getKeyStream();
         final DataInputStream valueStream = entry.getValueStream();) {
      outputWriter.write("Container: ");
      outputWriter.write(keyStream.readUTF());
      outputWriter.write("\n");
      this.writeFiles(valueStream, outputWriter);
    }
  }
806889
public static void writeRecord(final List<VcfSample> samples, final VcfRecord record, final PrintWriter writer) {
        checkNotNull(samples);
        checkNotNull(record);
        checkNotNull(writer);

        StringBuilder sb = new StringBuilder();
        sb.append(record.getChrom());
        sb.append("\t");
        sb.append(record.getPos());

        sb.append("\t");
        if (record.getId().length == 0) {
            sb.append(".");
        }
        else {
            sb.append(Joiner.on(";").join(record.getId()));
        }

        sb.append("\t");
        sb.append(record.getRef());
        sb.append("\t");
        sb.append(Joiner.on(",").join(record.getAlt()));

        sb.append("\t");
        if (Double.isNaN(record.getQual())) {
            sb.append(".");
        }
        else {
            sb.append((int) record.getQual());
        }

        sb.append("\t");
        sb.append(Joiner.on(";").join(record.getFilter()));

        sb.append("\t");
        if (record.getInfo().isEmpty()) {
            sb.append(".");
        }
        else {
            sb.append(Joiner.on(";").withKeyValueSeparator("=").join(record.getInfo().asMap()));
        }

        if (!samples.isEmpty()) {
            sb.append("\t");
            sb.append(Joiner.on(":").join(record.getFormat()));
            for (VcfSample sample : samples) {
                sb.append("\t");

                List<String> values = new ArrayList<String>();
                for (String formatId : record.getFormat()) {
                    List<String> fieldValues = record.getGenotypes().get(sample.getId()).getFields().get(formatId);
                    values.add(fieldValues.isEmpty() ? "." : Joiner.on(",").join(fieldValues));
                }
                sb.append(Joiner.on(":").join(values));
            }
        }
        writer.println(sb.toString());
    }
7251
public void writeExternal(PofWriter writer)
            throws IOException {
        super.writeExternal(writer);
        writer.writeBinary(10, toBinary(value));
        writer.writeBoolean(11, fAllowInsert);
        writer.writeBoolean(12, fReturn);
    }
93849
public void write(Writer writer) throws IOException {
    final Properties properties = new Properties();

    for (Map.Entry<DictionaryAttribute, String> e : getAttributes().entrySet()) {
      properties.setProperty(e.getKey().propertyName, e.getValue());
    }

    properties.store(writer, "# " + getClass().getName());
  }
1061503
private static void writeReader(final Reader reader, final FileWriter writer) throws IOException {
        writeReader(reader, writer, LineEndingStyle.LOCAL);
    }