code: public void writePoint(double weight, DataPoint dp, double label) throws IOException
      {
          ByteArrayOutputStream baos = local_baos.get();
          pointToBytes(weight, dp, label, baos);
          if(baos.size() >= LOCAL_BUFFER_SIZE)//We've got a big chunk of data, lets dump it
              synchronized(out)
              {
                  baos.writeTo(out);
                  baos.reset();
              }
      }
docs: Write out the given data point to the output stream
  @param weight weight of the given data point to write out
  @param dp the data point to write to the file
  @param label The associated label for this dataum. If {@link #type} is a
  {@link DataSetType#SIMPLE} set, this value will be ignored. If
  {@link DataSetType#CLASSIFICATION}, the value will be assumed to be an
  integer class label.
  @throws java.io.IOException