Why is this method available here? Whoever has the lineConsumer can call it. This method could cause problems since String could be very large.