length limited stream read