public synchronized void processPacket(String packet) {
    if (!myStarted)
      sendStart();
    writeNext(SegmentedStream.MARKER_PREFIX);
    String encodedPacket = Packet.encode(packet);
    writeNext(encodedPacket.length() + SegmentedStream.LENGTH_DELIMITER + encodedPacket);
  }
public synchronized void processPacket(String packet)