// Documentation inherited from CharStreamSource
 public long getEstimatedMaximumOutputLength() {
   return segment.length() * 2;
 }