MCPcopy Create free account
hub / github.com/BaseXdb/basex / get

Method get

basex-core/src/main/java/org/basex/io/out/PrintOutput.java:47–52  ·  view source on GitHub ↗

Returns a new instance for the given output stream. @param out output stream reference @return print output

(final OutputStream out)

Source from the content-addressed store, hash-verified

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.

Callers 8

initMethod · 0.95
CLIClass · 0.95
OutputSerializerMethod · 0.95
writeMethod · 0.95
writeMethod · 0.95
ClientSessionMethod · 0.95
authenticateMethod · 0.95
executeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected