Returns a new instance for the given output stream. @param out output stream reference @return print output
(final OutputStream out)
| 45 | * @return print output |
| 46 | */ |
| 47 | public static PrintOutput get(final OutputStream out) { |
| 48 | return out instanceof final PrintOutput po ? po : new PrintOutput( |
| 49 | out instanceof ByteArrayOutputStream || |
| 50 | out instanceof BufferedOutputStream || |
| 51 | out instanceof BufferOutput ? out : new BufferOutput(out)); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Sets the maximum number of bytes to be written. |
no outgoing calls
no test coverage detected