Code examples for PrintStream

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
86:	out.println("set a b"); 
87:	out.flush(); 
-
91:	out.println("get a"); 
92:	out.flush(); 
-
96:	out.println("list"); 
97:	out.flush(); 
Full Snippet Info
9
CodeRank
69:	stream.print("<member>\n"); 
-
72:	stream.print("<name>"+tag+"</name>\n"); 
-
74:	stream.print("<value>"); 
-
228:	stream.print("<struct>\n"); 
Full Snippet Info
8
CodeRank
21:	this.stream = new PrintStream(new FileOutputStream(out)); 
Full Snippet Info
8
CodeRank
18:	stream = new PrintStream(baos); 
19:	logger = new StandardErrorLogger("test", stream); 
Full Snippet Info
8
CodeRank
150:	out.printf("Usage: %s [options] <input dirs> <output dir>\n", MrsstableRunner.class.getSimpleName()); 
151:	out.println("options supported are (overload the param of configuration file, which is specified with -conf) : "); 
152:	out.println("-table_id <table id>           overload mrsstable.table.id"); 
153:	out.println("-rowkey_desc <rowkey desc>     overload mrsstable.rowkey.desc"); 
154:	out.println("-sampler <sampler type>        overload mrsstable.presort.sampler"); 
155:	out.println("-delim <delim>                 overload mrsstable.primary.delimeter"); 
156:	out.println("-null_flag <null_flag>         overload mrsstable.primary.nullflag"); 
Full Snippet Info
8
CodeRank
43:	if (stream.checkError()) { 
-
50:	stream.print(","); 
-
73:	stream.print(val); 
Full Snippet Info
8
CodeRank
97:	System.out.println("output from fsck:\n" + result); 
Full Snippet Info
8
CodeRank
59:	out.print(usage("appclient")); 
Full Snippet Info
8
CodeRank
285:	PrintStream out = new PrintStream(outFile); 
286:	root.output(out, null); 
287:	out.close(); 
Full Snippet Info
8
CodeRank
49:	out.print(stepSubCounts.getTotal()); 
50:	out.print(" Steps ("); 
-
52:	out.println(")"); 
-
56:	out.print(scenarioSubCounts.getTotal()); 
57:	out.print(" Scenarios ("); 
-
59:	out.println(")"); 
-
84:	out.print(String.format("%dm", (totalDuration / ONE_MINUTE))); 
-
86:	out.println(format.format(((double) (totalDuration % ONE_MINUTE)) / ONE_SECOND) + "s"); 
Full Snippet Info
8
CodeRank
108:	Thread stdoutPumper = ThreadPumper.start(p.getInputStream(), childOut, true); 
109:	Thread stderrPumper = ThreadPumper.start(p.getErrorStream(), childOut, true); 
110:	if (true) childOut.println(">>> Begin subprocess output"); 
-
114:	if (true) childOut.println("<<< End subprocess output"); 
Full Snippet Info
7
CodeRank
138:	System.out.println("New client: id=" + clientGeneration 
Full Snippet Info
8
CodeRank
79:	out.print(usage("standalone")); 
Full Snippet Info
8
CodeRank
77:	public PrintStream dummyStream = new PrintStream(new OutputStream(){ 
Full Snippet Info
8
CodeRank
62:	if (mState == State.RUNNING) out.print("WARNING:  timer still running!  "); 
63:	out.print(mName + ": "); 
-
65:	out.print(t); 
66:	out.print(".  Run "); 
67:	out.print(mStarts); 
68:	out.print(" times, average run time "); 
-
71:	out.print(t); 
72:	out.println("."); 
Full Snippet Info
7
CodeRank
48:	mStream.println("#--------------------------------------------------"); 
49:	mStream.println("# TEZ DAG plan: " + tezPlanContainerNode.getOperatorKey()); 
50:	mStream.println("#--------------------------------------------------"); 
-
53:	mStream.print(graphPrinter.toString()); 
54:	TezPrinter printer = new TezPrinter(mStream, tezPlanContainerNode.getTezOperPlan()); 
Full Snippet Info
7
CodeRank
77:	out.println("Using default output directory: " 
-
109:	out.println("A title must be specified when generating html"); 
-
114:	out.println("No html filebases were specified"); 
-
125:	out.println("No image path specified; using only the output dir"); 
-
131:	return new DocTool(out, err, localOutDir, generateHtml, title, 
Full Snippet Info
7
CodeRank
35:	ps.println(text + " at " + dumper.toString()); 
Full Snippet Info
8
CodeRank
169:	out.print("TestKeyManager.getPrivateKey"); 
170:	out.print(" | alias: "); 
171:	out.print(alias); 
-
173:	out.print(" => "); 
174:	out.println(String.valueOf(pk)); 
Full Snippet Info
7
CodeRank
99:	out.print(usage("domain")); 
Full Snippet Info
8
CodeRank