Code examples for BufferedWriter

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.
52:	BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(arg6)); 
53:	bw.write(arg0.toString()); 
54:	bw.flush(); 
Full Snippet Info
9
CodeRank
37:	BufferedWriter out = new BufferedWriter(outFile); 
-
39:	out.write(filebuffer.toString()); 
40:	out.flush(); 
-
42:	out.close(); 
Full Snippet Info
9
CodeRank
60:	BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(handler.getWebConnection().getOutputStream())); 
-
65:	writer.flush(); 
-
79:	writer.write(text); 
80:	writer.newLine(); 
Full Snippet Info
9
CodeRank
104:	writer = new BufferedWriter(new OutputStreamWriter(fs)); 
Full Snippet Info
8
CodeRank
49:	final BufferedWriter writer = new BufferedWriter(new FileWriter(file)); 
-
53:	writer.write("Test\n"); 
-
56:	writer.close(); 
Full Snippet Info
8
CodeRank
69:	BufferedWriter out = new BufferedWriter(writer); 
-
71:	out.append(tag + ":fail\n"); 
-
73:	out.append(tag + ":pass\n"); 
-
75:	out.close(); 
Full Snippet Info
8
CodeRank
117:	final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out)); 
118:	writer.write(outJson); 
119:	writer.flush(); 
Full Snippet Info
8
CodeRank
132:	BufferedWriter writer = new BufferedWriter(fileWriter); 
-
134:	writer.write(queueSet.getExtensionJs()); 
135:	writer.close(); 
Full Snippet Info
8
CodeRank
229:	BufferedWriter writer = new BufferedWriter( new FileWriter( fileName ) ); 
230:	writer.write( "<loader version=\"1.0\" >" + EOL ); 
231:	writer.write( "<application id=\"" + SessionManager.getInstance().getArchiveName() + "\">" + EOL ); 
232:	writer.write( "<name>" + widgetConfig.getName() + "</name>" + EOL ); 
-
234:	writer.write( "<description>" + widgetConfig.getDescription() + "</description>" + EOL ); 
-
236:	writer.write( "<version>" + widgetConfig.getVersion() + "</version>" + EOL ); 
-
238:	writer.write( "<vendor>" + widgetConfig.getAuthor() + "</vendor>" + EOL ); 
-
241:	writer.write( "<copyright>" + widgetConfig.getCopyright() + "</copyright>" + EOL ); 
-
243:	writer.write( "<fileset Java=\"1.45\">" + EOL ); 
244:	writer.write( "<directory>" ); 
245:	writer.write( "</directory>" + EOL ); 
246:	writer.write( "<files>" ); 
247:	writer.write( SessionManager.getInstance().getArchiveName() + ".cod" ); 
248:	writer.write( "</files>" + EOL ); 
249:	writer.write( "</fileset>" + EOL ); 
250:	writer.write( "</application>" + EOL ); 
251:	writer.write( "</loader>" + EOL ); 
252:	writer.close(); 
Full Snippet Info
8
CodeRank
37:	BufferedWriter out = new BufferedWriter(outFile); 
-
39:	out.write(filebuffer.toString()); 
40:	out.flush(); 
-
42:	out.close(); 
Full Snippet Info
8
CodeRank
58:	BufferedWriter w = new BufferedWriter(new OutputStreamWriter(ostream)); 
59:	w.write("0123456789"); 
60:	w.close(); 
Full Snippet Info
8
CodeRank
38:	BufferedWriter writer = new BufferedWriter(new FileWriter(file, true)); 
39:	writer.write(contents); 
40:	writer.close(); 
Full Snippet Info
7
CodeRank
100:	BufferedWriter out = new BufferedWriter(sgf_writer); 
-
102:	out.write(json_str); 
103:	out.close(); 
Full Snippet Info
8
CodeRank
187:	out = new BufferedWriter(new OutputStreamWriter(clientStream), 8 * 1024); 
188:	out.write(value); 
189:	out.write("\n"); 
190:	out.flush(); 
-
197:	out.close(); 
Full Snippet Info
7
CodeRank
49:	mOutput = new BufferedWriter(new FileWriter(memoryOut, true)); 
Full Snippet Info
8
CodeRank
147:	final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream, Charset.defaultCharset())); 
-
152:	writer.write(jsonToString(json)); 
153:	writer.flush(); 
-
157:	Utils.closeSilently(writer); 
Full Snippet Info
7
CodeRank
44:	BufferedWriter os = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())); 
-
55:	Thread.sleep(sleep); 
-
61:	os.write(value, 0, value.length()); 
-
63:	os.flush(); 
-
67:	Thread.sleep(sleep); 
-
76:	os.close(); 
Full Snippet Info
7
CodeRank
64:	Environment.getExternalStorageDirectory(), OUTPUT_FILE))); 
65:	mOutputWriter.write(String.format("iteration %d out of %d\n", 
-
67:	mOutputWriter.flush(); 
68:	mOutputWriter.close(); 
Full Snippet Info
8
CodeRank
69:	BufferedWriter bw = new BufferedWriter(new FileWriter(scriptFile)); 
70:	bw.write("a = load 'test/org/apache/pig/test/data/passwd';\n"); 
71:	bw.write("b = group a by $0\n"); 
72:	bw.write("c = foreach b generate group, COUNT(a) as cnt;\n"); 
73:	bw.write("store c into 'out'\n"); 
74:	bw.close(); 
Full Snippet Info
7
CodeRank
114:	BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream)); 
115:	writer.write(data); 
116:	writer.close(); 
Full Snippet Info
8
CodeRank