public final class BinarySafeStream extends ObjectTunnels byte stream into another byte stream so that binary data can be sent across binary-unsafe stream.
This implementation uses a variation of base64. A care has been taken to ensure that the following scenario is handled correctly.
- If the writing side flush, the reading side should see everything written by then, without blocking (even if this happens outside the 3-byte boundary)
- Reading side won't block unnecessarily.
- Kohsuke Kawaguchi
All Methods Static Methods Concrete Methods Modifier and Type Method Description
wrap(InputStream in)Decode binary safe stream.