Home
last modified time | relevance | path

Searched refs:bw (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DOldBufferedWriterTest.java28 BufferedWriter bw; field in OldBufferedWriterTest
37 bw = new BufferedWriter(sw); in test_ConstructorLjava_io_Writer()
39 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_Writer()
41 bw.flush(); in test_ConstructorLjava_io_Writer()
50 bw = new BufferedWriter(sw, 0); in test_ConstructorLjava_io_WriterI()
56 bw = new BufferedWriter(sw, 10); in test_ConstructorLjava_io_WriterI()
58 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_WriterI()
60 bw.flush(); in test_ConstructorLjava_io_WriterI()
70 bw.close(); in test_close()
71 bw.write(testString); in test_close()
[all …]
DOldFileWriterTest.java35 BufferedWriter bw; field in OldFileWriterTest
155 bw.close(); in tearDown()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DBufferedWriterTest.java30 BufferedWriter bw; field in BufferedWriterTest
41 bw = new BufferedWriter(sw); in test_ConstructorLjava_io_Writer()
85 bw.close(); in test_close()
86 bw.write(testString); in test_close()
95 BufferedWriter bw = new BufferedWriter(mw); in test_close() local
96 bw.write('a'); in test_close()
97 bw.close(); in test_close()
114 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new ByteArrayOutputStream())); in test_close2() local
115 bw.close(); in test_close2()
122 bw.write("This should not cause a flush"); in test_flush()
[all …]
DFileReaderTest.java33 BufferedWriter bw; field in FileReaderTest
43 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_io_File()
44 bw.write(" After test string", 0, 18); in test_ConstructorLjava_io_File()
45 bw.close(); in test_ConstructorLjava_io_File()
58 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_io_FileDescriptor()
59 bw.write(" After test string", 0, 18); in test_ConstructorLjava_io_FileDescriptor()
60 bw.close(); in test_ConstructorLjava_io_FileDescriptor()
75 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_lang_String()
76 bw.write(" After test string", 0, 18); in test_ConstructorLjava_lang_String()
77 bw.close(); in test_ConstructorLjava_lang_String()
[all …]
DFileWriterTest.java33 private BufferedWriter bw; field in FileWriterTest
45 bw = new BufferedWriter(new FileWriter(f)); in test_ConstructorLjava_io_File()
46 bw.write(" After test string", 0, 18); in test_ConstructorLjava_io_File()
47 bw.close(); in test_ConstructorLjava_io_File()
118 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_lang_String()
119 bw.write(" After test string", 0, 18); in test_ConstructorLjava_lang_String()
120 bw.close(); in test_ConstructorLjava_lang_String()
136 bw = new BufferedWriter(new FileWriter(f.getPath(), true)); in test_ConstructorLjava_lang_StringZ()
137 bw.write(" After test string", 0, 18); in test_ConstructorLjava_lang_StringZ()
138 bw.close(); in test_ConstructorLjava_lang_StringZ()
[all …]
/libcore/ojluni/src/main/java/java/util/
DProperties.java657 private static void writeComments(BufferedWriter bw, String comments) in writeComments() argument
659 bw.write("#"); in writeComments()
670 bw.write(comments.substring(last, current)); in writeComments()
676 bw.write(new String(uu)); in writeComments()
678 bw.newLine(); in writeComments()
687 bw.write("#"); in writeComments()
694 bw.write(comments.substring(last, current)); in writeComments()
695 bw.newLine(); in writeComments()
825 private void store0(BufferedWriter bw, String comments, boolean escUnicode) in store0() argument
829 writeComments(bw, comments); in store0()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DJarIndex.java273 BufferedWriter bw = new BufferedWriter in write() local
275 bw.write("JarIndex-Version: 1.0\n\n"); in write()
281 bw.write(jar + "\n"); in write()
286 bw.write(listitr.next() + "\n"); in write()
289 bw.write("\n"); in write()
291 bw.flush(); in write()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesSetup.java84 BufferedWriter bw = new BufferedWriter(fw); in initializeFiles() local
85 bw.write(TEST_FILE_DATA); in initializeFiles()
86 bw.close(); in initializeFiles()
/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java55 BufferedWriter bw = new BufferedWriter(sw); in testLineSeparator() local
56 bw.newLine(); in testLineSeparator()
57 bw.flush(); in testLineSeparator()
/libcore/ojluni/annotations/hiddenapi/java/util/
DProperties.java68 private static void writeComments(java.io.BufferedWriter bw, java.lang.String comments) in writeComments() argument
87 private void store0(java.io.BufferedWriter bw, java.lang.String comments, boolean escUnicode) in store0() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java4221 BufferedOutputStream bw = new BufferedOutputStream( in setUp() local
4223 bw.write(1);// write something into the file in setUp()
4224 bw.close(); in setUp()