VarysInputStream and VarysOutputStream are public API.