Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DBufferedOutputStreamTest.java42 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStream()
52 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStreamI()
104 os.write(fileString.getBytes(), 0, 500); in test_flush()
119 public void write(int b) { in write() method in BufferedOutputStreamTest.MockOutputStream
133 os.write(fileString.getBytes(), 0, 500); in test_write$BII()
139 os.write(fileString.getBytes(), 500, 513); in test_write$BII()
151 bos.write("a".getBytes()); in test_write$BII()
152 bos.write("bcde".getBytes()); in test_write$BII()
157 bos.write("ab".getBytes()); in test_write$BII()
158 bos.write("cd".getBytes()); in test_write$BII()
[all …]
DBufferedWriterTest.java42 sw.write("Hi"); in test_ConstructorLjava_io_Writer()
57 public void write(char[] buf, int off, int len) throws IOException { in write() method in BufferedWriterTest.MockWriter
86 bw.write(testString); in test_close()
96 bw.write('a'); in test_close()
122 bw.write("This should not cause a flush"); in test_flush()
134 bw.write("Hello"); in test_newLine()
136 bw.write("World"); in test_newLine()
147 bw.write(testCharArray, 500, 1000); in test_write$CII()
161 bWriter.write(nullCharArray, -1, -1); in test_write_$CII_Exception()
168 bWriter.write(nullCharArray, -1, 0); in test_write_$CII_Exception()
[all …]
DOutputStreamWriterTest.java101 writer.write(source); in testFlush()
115 writer.write((char[]) null, -1, -1); in testWritecharArrayintint()
123 writer.write((char[]) null, 1, -1); in testWritecharArrayintint()
130 writer.write((char[]) null, 1, 1); in testWritecharArrayintint()
136 writer.write(new char[0], 0, 1); in testWritecharArrayintint()
142 writer.write(chars, -1, 1); in testWritecharArrayintint()
148 writer.write(chars, 0, -1); in testWritecharArrayintint()
154 writer.write(chars, 1, chars.length); in testWritecharArrayintint()
159 writer.write(chars, 1, 2); in testWritecharArrayintint()
162 writer.write(chars, 0, chars.length); in testWritecharArrayintint()
[all …]
DFileOutputStreamTest.java80 fos.write('l'); in test_ConstructorLjava_io_FileDescriptor()
108 fos.write("HI".getBytes(), 0, 2); in test_ConstructorLjava_lang_StringZ()
111 fos.write(fileString.getBytes()); in test_ConstructorLjava_lang_StringZ()
155 fos.write(fileString.getBytes()); in test_close()
180 fos.write(fileString.getBytes()); in test_write$B()
194 fos.write(fileString.getBytes(), 0, fileString.length()); in test_write$BII()
205 out.write(null, 0, 0); in test_write$BII()
221 fos.write('t'); in test_writeI()
235 fos.write(null, 1, 1); in test_write$BII2()
241 fos.write(new byte[1], -1, 1); in test_write$BII2()
[all …]
DRandomAccessFileTest.java55 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String()
61 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String()
67 raf.write(20); in test_ConstructorLjava_io_FileLjava_lang_String()
93 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String()
97 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String()
101 raf.write("Test".getBytes(), 0, 4); in test_ConstructorLjava_lang_StringLjava_lang_String()
156 raf.write("Test".getBytes(), 0, 4); in test_close()
182 raf.write(fileString.getBytes(), 0, 1000); in test_getFilePointer()
194 raf.write(fileString.getBytes()); in test_length()
206 fos.write(fileString.getBytes("UTF-8"), 0, fileString.length()); in test_read()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDerOutputStream.java77 public void write(byte tag, byte[] buf) throws IOException { in write() method in DerOutputStream
78 write(tag); in write()
80 write(buf, 0, buf.length); in write()
92 public void write(byte tag, DerOutputStream out) throws IOException { in write() method in DerOutputStream
93 write(tag); in write()
95 write(out.buf, 0, out.count); in write()
117 write(tag); in writeImplicit()
118 write(value.buf, 1, value.count-1); in writeImplicit()
140 write(DerValue.tag_Boolean); in putBoolean()
143 write(0xff); in putBoolean()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldBufferedWriterTest.java38 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_Writer()
57 bw.write("Hi", 0, 2); in test_ConstructorLjava_io_WriterI()
70 bw.write(testString); in test_close()
87 bw.write("This should not cause a flush"); in test_flush()
106 bw.write("Hello"); in test_newLine()
108 bw.write("World"); in test_newLine()
127 bw.write(testCharArray, 500, 1000); in test_write$CII()
133 bw.write(testCharArray, 0, testCharArray.length); in test_write$CII()
135 bw.write(testCharArray, 0, 0); in test_write$CII()
137 bw.write(testCharArray, testCharArray.length, 0); in test_write$CII()
[all …]
DOldWriterTest.java102 tobj.write("01234".toCharArray()); in test_write$C()
104 tobj.write("abcde".toCharArray()); in test_write$C()
106 tobj.write("ABCDEFGHIJ".toCharArray()); in test_write$C()
108 tobj.write("z".toCharArray()); // Just fill the writer to its limit! in test_write$C()
110 tobj.write("LES JEUX SONT FAITS".toCharArray()); in test_write$C()
119 tobj.write('a'); in test_writeI()
120 tobj.write('b'); in test_writeI()
123 tobj.write('c'); in test_writeI()
132 tobj.write("01234"); in test_writeLjava_lang_String()
134 tobj.write("abcde"); in test_writeLjava_lang_String()
[all …]
DOldOutputStreamWriterTest.java207 writer.write(new char[] { 'a' }); in test_close()
216 writer.write(new char[] { '\u3048' }); in test_close()
230 writer.write(new char[] { '\u3048' }); in test_close()
231 writer.write(new char[] { '\u3048' }); in test_close()
249 osw.write(testString, 0, testString.length()); in test_flush()
302 charsOut.write(chars); in testEncodeCharset()
347 writer.write(chars, -1, 1); in test_write$CII()
354 writer.write(chars, 0, -1); in test_write$CII()
361 writer.write(new char[0], 0, 1); in test_write$CII()
368 writer.write((char[]) null, 0, 1); in test_write$CII()
[all …]
DFileOutputStreamTest.java36 fos2.write(1); in testFileDescriptorOwnership()
41 fos2.write(new byte[1], 0, 1); in testFileDescriptorOwnership()
46 fos1.write(1); in testFileDescriptorOwnership()
51 fos1.write(1); in testFileDescriptorOwnership()
56 fos1.write(new byte[1], 0, 1); in testFileDescriptorOwnership()
77 fos.write(bytes); in testClose()
82 fos.write(bytes, 0, 2); in testClose()
87 fos.write(42); in testClose()
93 fos.write(new byte[0], 0, 0); in testClose()
DOldFilterOutputStreamTest.java46 os.write('t'); in test_ConstructorLjava_io_OutputStream()
58 os.write(42); in test_close()
65 os.write(42); in test_close()
83 os.write(fileString.getBytes(), 0, 500); in test_flush()
101 os.write(fileString.getBytes()); in test_write$B()
114 os.write(42); in test_write$B()
124 os.write(fileString.getBytes(), 10, testLength - 10); in test_write$BII()
137 os.write(fileString.getBytes()); in test_write$BII()
150 os.write(buf, -1, 1); in test_write$BII_Exception()
157 os.write(buf, 0, -1); in test_write$BII_Exception()
[all …]
/libcore/ojluni/src/main/java/sun/net/
DTelnetOutputStream.java96 public void write(int c) throws IOException { in write() method in TelnetOutputStream
98 super.write(c); in write()
104 super.write(0); in write()
105 super.write(c); in write()
110 super.write('\r'); in write()
111 super.write('\n'); in write()
118 super.write('\r'); in write()
122 super.write(c); in write()
130 public void write(byte bytes[], int off, int length) throws IOException { in write() method in TelnetOutputStream
132 super.write(bytes, off, length); in write()
[all …]
/libcore/ojluni/src/main/java/java/io/
DWriter.java107 public void write(int c) throws IOException { in write() method in Writer
113 write(writeBuffer, 0, 1); in write()
126 public void write(char cbuf[]) throws IOException { in write() method in Writer
127 write(cbuf, 0, cbuf.length); in write()
145 abstract public void write(char cbuf[], int off, int len) throws IOException; in write() method in Writer
156 public void write(String str) throws IOException { in write() method in Writer
157 write(str, 0, str.length()); in write()
180 public void write(String str, int off, int len) throws IOException { in write() method in Writer
192 write(cbuf, 0, len); in write()
225 write("null"); in append()
[all …]
DDataOutputStream.java87 public synchronized void write(int b) throws IOException { in write() method in DataOutputStream
88 out.write(b); in write()
104 public synchronized void write(byte b[], int off, int len) in write() method in DataOutputStream
107 out.write(b, off, len); in write()
139 out.write(v ? 1 : 0); in writeBoolean()
153 out.write(v); in writeByte()
167 out.write((v >>> 8) & 0xFF); in writeShort()
168 out.write((v >>> 0) & 0xFF); in writeShort()
182 out.write((v >>> 8) & 0xFF); in writeChar()
183 out.write((v >>> 0) & 0xFF); in writeChar()
[all …]
DPrintWriter.java401 public void write(int c) { in write() method in PrintWriter
405 out.write(c); in write()
422 public void write(char buf[], int off, int len) { in write() method in PrintWriter
426 out.write(buf, off, len); in write()
442 public void write(char buf[]) { in write() method in PrintWriter
443 write(buf, 0, buf.length); in write()
452 public void write(String s, int off, int len) { in write() method in PrintWriter
456 out.write(s, off, len); in write()
472 public void write(String s) { in write() method in PrintWriter
473 write(s, 0, s.length()); in write()
[all …]
DFilterWriter.java64 public void write(int c) throws IOException { in write() method in FilterWriter
65 out.write(c); in write()
77 public void write(char cbuf[], int off, int len) throws IOException { in write() method in FilterWriter
78 out.write(cbuf, off, len); in write()
90 public void write(String str, int off, int len) throws IOException { in write() method in FilterWriter
91 out.write(str, off, len); in write()
DStringWriter.java76 public void write(int c) { in write() method in StringWriter
87 public void write(char cbuf[], int off, int len) { in write() method in StringWriter
100 public void write(String str) { in write() method in StringWriter
111 public void write(String str, int off, int len) { in write() method in StringWriter
141 write("null"); in append()
143 write(csq.toString()); in append()
181 write(cs.subSequence(start, end).toString()); in append()
202 write(c); in append()
DFilterOutputStream.java76 public void write(int b) throws IOException { in write() method in FilterOutputStream
77 out.write(b); in write()
96 public void write(byte b[]) throws IOException { in write() method in FilterOutputStream
97 write(b, 0, b.length); in write()
120 public void write(byte b[], int off, int len) throws IOException { in write() method in FilterOutputStream
125 write(b[off + i]); in write()
/libcore/ojluni/src/main/java/sun/misc/
DBASE64Encoder.java90 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom()
91 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom()
92 outStream.write('='); in encodeAtom()
93 outStream.write('='); in encodeAtom()
98 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom()
99 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom()
100 outStream.write(pem_array[((b << 2) & 0x3c) + ((c >>> 6) & 0x3)]); in encodeAtom()
101 outStream.write('='); in encodeAtom()
106 outStream.write(pem_array[(a >>> 2) & 0x3F]); in encodeAtom()
107 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); in encodeAtom()
[all …]
/libcore/ojluni/src/main/java/sun/security/ssl/
DHandshakeOutStream.java90 public void write(byte buf[], int off, int len) throws IOException { in write() method in HandshakeOutStream
97 r.write(buf, off, howmuch); in write()
107 public void write(int i) throws IOException { in write() method in HandshakeOutStream
111 r.write(i); in write()
157 r.write(i); in putInt8()
165 r.write(i >> 8); in putInt16()
166 r.write(i); in putInt16()
174 r.write(i >> 16); in putInt24()
175 r.write(i >> 8); in putInt24()
176 r.write(i); in putInt24()
[all …]
/libcore/ojluni/src/main/java/java/net/
DSocksSocketImpl.java175 out.write(1); in authenticate()
176 out.write(userName.length()); in authenticate()
178 out.write(userName.getBytes("ISO-8859-1")); in authenticate()
183 out.write(password.length()); in authenticate()
185 out.write(password.getBytes("ISO-8859-1")); in authenticate()
190 out.write(0); in authenticate()
267 out.write(PROTO_VERS4); in connectV4()
268 out.write(CONNECT); in connectV4()
269 out.write((endpoint.getPort() >> 8) & 0xff); in connectV4()
270 out.write((endpoint.getPort() >> 0) & 0xff); in connectV4()
[all …]
/libcore/support/src/test/java/org/apache/harmony/testframework/
DSinkTester.java107 out.write(a, 1000, 0); in sinkTestWriteZeroBytes()
108 out.write(a, 0, 0); in sinkTestWriteZeroBytes()
109 out.write(new byte[] { }); in sinkTestWriteZeroBytes()
120 out.write(b); in sinkTestWriteByteByByte()
137 out.write(a); in sinkTestWriteArray()
140 out.write(b); in sinkTestWriteArray()
143 out.write(c); in sinkTestWriteArray()
161 out.write(a, 1000, 2); in sinkTestWriteOffset()
168 out.write(b, 1020, 4); in sinkTestWriteOffset()
174 out.write(c, 0, 3); in sinkTestWriteOffset()
[all …]
DCharSinkTester.java106 out.write(a, 1000, 0); in sinkTestWriteZeroChars()
107 out.write(a, 0, 0); in sinkTestWriteZeroChars()
108 out.write(new char[] { }); in sinkTestWriteZeroChars()
119 out.write(c); in sinkTestWriteCharByChar()
131 out.write("EF".toCharArray()); in sinkTestWriteArray()
132 out.write("GCDE".toCharArray()); in sinkTestWriteArray()
133 out.write("CBA".toCharArray()); in sinkTestWriteArray()
146 out.write(a, 1000, 2); in sinkTestWriteOffset()
153 out.write(b, 1020, 4); in sinkTestWriteOffset()
159 out.write(c, 0, 3); in sinkTestWriteOffset()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSinkChannelTest.java85 sink.write(buf); in test_write_LByteBuffer()
114 sink.write(ByteBuffer.wrap(strbytes)); in test_write_LByteBuffer_mutliThread()
153 sink.write(nullBuf); in test_write_LByteBuffer_Exception()
163 int written = sink.write(buffer); in test_write_LByteBuffer_SourceClosed()
172 sink.write(buffer); in test_write_LByteBuffer_SinkClosed()
190 sink.write(bufArray); in test_write_$LByteBuffer()
218 sink.write(nullBufArrayRef); in test_write_$LByteBuffer_Exception()
228 sink.write(nullBufArray); in test_write_$LByteBuffer_Exception()
239 long written = sink.write(bufArray); in test_write_$LByteBuffer_SourceClosed()
252 sink.write(bufArray); in test_write_$LByteBuffer_SinkClosed()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DInflaterOutputStreamTest.java183 ios.write(compressedBytes[i]); in test_finish()
195 ios.write(compressedBytes[i]); in test_finish()
216 ios.write(compressedBytes[i]); in test_write_I()
232 ios.write(-1); in test_write_I_Illegal()
247 ios.write(compressedBytes, 0, length); in test_write_$BII()
261 ios.write(bytes, 0, 4); in test_write_$BII_Illegal()
277 ios.write(bytes, 0, 4); in test_write_$BII_Illegal()
283 ios.write(bytes, -1, 4); in test_write_$BII_Illegal()
289 ios.write(bytes, -1, -4); in test_write_$BII_Illegal()
295 ios.write(bytes, 0, 400); in test_write_$BII_Illegal()
[all …]

12345678910>>...16