public override int intValue() { return (int)val; }
public static Stream toBuffered(Stream output, Long bufSize) { if (bufSize == null || bufSize.longValue() == 0) return output; else return new BufferedStream(output, bufSize.intValue()); }