/libcore/ojluni/src/main/java/sun/net/ |
H A D | TelnetOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 32 * This class overrides write to do CRLF processing as specified in 96 public void write(int c) throws IOException { method in class:TelnetOutputStream 98 super.write(c); 104 super.write(0); 105 super.write(c); 110 super.write('\r'); 111 super.write('\n'); 118 super.write('\r'); 122 super.write( 130 public void write(byte bytes[], int off, int length) throws IOException { method in class:TelnetOutputStream [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | FilterWriter.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 64 public void write(int c) throws IOException { method in class:FilterWriter 65 out.write(c); 77 public void write(char cbuf[], int off, int len) throws IOException { method in class:FilterWriter 78 out.write(cbuf, off, len); 90 public void write(String str, int off, int len) throws IOException { method in class:FilterWriter 91 out.write(str, off, len);
|
H A D | Writer.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 31 * subclass must implement are write(char[], int, int), flush(), and close(). 107 public void write(int c) throws IOException { method in class:Writer 113 write(writeBuffer, 0, 1); 126 public void write(char cbuf[]) throws IOException { method in class:Writer 127 write(cbuf, 0, cbuf.length); 140 * Number of characters to write 145 abstract public void write(char cbuf[], int off, int len) throws IOException; method in class:Writer 156 public void write(String str) throws IOException { method in class:Writer 157 write(st 180 public void write(String str, int off, int len) throws IOException { method in class:Writer [all...] |
H A D | ObjectOutput.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 57 public void write(int b) throws IOException; method in interface:ObjectOutput 65 public void write(byte b[]) throws IOException; method in interface:ObjectOutput 74 public void write(byte b[], int off, int len) throws IOException; method in interface:ObjectOutput 77 * Flushes the stream. This will write any buffered
|
H A D | OutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 43 * @see java.io.OutputStream#write(int) 49 * contract for <code>write</code> is that one byte is written 62 public abstract void write(int b) throws IOException; method in class:OutputStream 66 * to this output stream. The general contract for <code>write(b)</code> 68 * <code>write(b, 0, b.length)</code>. 72 * @see java.io.OutputStream#write(byte[], int, int) 74 public void write(byte b[]) throws IOException { method in class:OutputStream 75 write(b, 0, b.length); 81 * The general contract for <code>write( 106 public void write(byte b[], int off, int len) throws IOException { method in class:OutputStream [all...] |
H A D | FilterOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 67 * The <code>write</code> method of <code>FilterOutputStream</code> 68 * calls the <code>write</code> method of its underlying output stream, 69 * that is, it performs <tt>out.write(b)</tt>. 71 * Implements the abstract <tt>write</tt> method of <tt>OutputStream</tt>. 76 public void write(int b) throws IOException { method in class:FilterOutputStream 77 out.write(b); 83 * The <code>write</code> method of <code>FilterOutputStream</code> 84 * calls its <code>write</code> method of three arguments with the 89 * <code>write</cod 96 public void write(byte b[]) throws IOException { method in class:FilterOutputStream 120 public void write(byte b[], int off, int len) throws IOException { method in class:FilterOutputStream [all...] |
H A D | StringWriter.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 76 public void write(int c) { method in class:StringWriter 85 * @param len Number of characters to write 87 public void write(char cbuf[], int off, int len) { method in class:StringWriter 100 public void write(String str) { method in class:StringWriter 109 * @param len Number of characters to write 111 public void write(String str, int off, int len) { method in class:StringWriter 122 * out.write(csq.toString()) </pre> 141 write("null"); 143 write(cs [all...] |
H A D | DataOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 29 * A data output stream lets an application write primitive Java data 51 * Creates a new data output stream to write data to the specified 81 * Implements the <code>write</code> method of <code>OutputStream</code>. 87 public synchronized void write(int b) throws IOException { method in class:DataOutputStream 88 out.write(b); 100 * @param len the number of bytes to write. 104 public synchronized void write(byte b[], int off, int len) method in class:DataOutputStream 107 out.write(b, off, len); 139 out.write( [all...] |
H A D | DataOutput.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 40 * write bytes, it is generally true that if 60 void write(int b) throws IOException; method in interface:DataOutput 75 void write(byte b[]) throws IOException; method in interface:DataOutput 94 * @param len the number of bytes to write. 97 void write(byte b[], int off, int len) throws IOException; method in interface:DataOutput 121 * does exactly the same thing as <code>write</code>
|
H A D | BufferedOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 30 * an output stream, an application can write bytes to the underlying 53 * Creates a new buffered output stream to write data to the 63 * Creates a new buffered output stream to write data to the 82 out.write(buf, 0, count); 93 public synchronized void write(int b) throws IOException { method in class:BufferedOutputStream 107 * buffer, however, then this method will flush the buffer and write the 113 * @param len the number of bytes to write. 116 public synchronized void write(byte b[], int off, int len) throws IOException { method in class:BufferedOutputStream 119 flush the output buffer and then write th [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | BASE64Encoder.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 90 outStream.write(pem_array[(a >>> 2) & 0x3F]); 91 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); 92 outStream.write('='); 93 outStream.write('='); 98 outStream.write(pem_array[(a >>> 2) & 0x3F]); 99 outStream.write(pem_array[((a << 4) & 0x30) + ((b >>> 4) & 0xf)]); 100 outStream.write(pem_array[((b << 2) & 0x3c) + ((c >>> 6) & 0x3)]); 101 outStream.write('='); 106 outStream.write(pem_arra [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | BufferedOutputStreamTest.java | 42 os.write(fileString.getBytes(), 0, 500); 52 os.write(fileString.getBytes(), 0, 500); 104 os.write(fileString.getBytes(), 0, 500); 119 public void write(int b) { method in class:BufferedOutputStreamTest.MockOutputStream 129 * java.io.BufferedOutputStream#write(byte[], int, int) 133 os.write(fileString.getBytes(), 0, 500); 139 os.write(fileString.getBytes(), 500, 513); 151 bos.write("a".getBytes()); 152 bos.write("bcde".getBytes()); 157 bos.write("a [all...] |
H A D | BufferedWriterTest.java | 42 sw.write("Hi"); 57 public void write(char[] buf, int off, int len) throws IOException { method in class:BufferedWriterTest.MockWriter 86 bw.write(testString); 96 bw.write('a'); 122 bw.write("This should not cause a flush"); 134 bw.write("Hello"); 136 bw.write("World"); 143 * java.io.BufferedWriter#write(char[], int, int) 147 bw.write(testCharArray, 500, 1000); 154 * java.io.BufferedWriter#write(cha [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 77 public void write(byte tag, byte[] buf) throws IOException { method in class:DerOutputStream 78 write(tag); 80 write(buf, 0, buf.length); 92 public void write(byte tag, DerOutputStream out) throws IOException { method in class:DerOutputStream 93 write(tag); 95 write(out.buf, 0, out.count); 117 write(tag); 118 write(value.buf, 1, value.count-1); 140 write(DerValu [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidStringWriterTest.java | 28 a.write(str, 0, 26); 29 a.write('X'); 33 a.write("alphabravodelta", 5, 5);
|
H A D | FileOutputStreamTest.java | 39 fos2.write(1); 44 fos2.write(new byte[1], 0, 1); 49 fos1.write(1); 54 fos1.write(1); 59 fos1.write(new byte[1], 0, 1); 77 // ...but any explicit write is an error. 80 fos.write(bytes); 85 fos.write(bytes, 0, 2); 90 fos.write(42); 95 // ...except a 0-byte write [all...] |
H A D | OldAndroidBufferedWriterTest.java | 34 a.write(str.toCharArray(), 0, 26); 35 a.write('X'); 39 a.write("alphabravodelta", 5, 5); 43 a.write("I'm on a new line.");
|
H A D | OldBufferedWriterTest.java | 39 bw.write("Hi", 0, 2); 58 bw.write("Hi", 0, 2); 71 bw.write(testString); 88 bw.write("This should not cause a flush"); 107 bw.write("Hello"); 109 bw.write("World"); 125 // Test for method void java.io.BufferedWriter.write(char [], int, int) 128 bw.write(testCharArray, 500, 1000); 134 bw.write(testCharArray, 0, testCharArray.length); 136 bw.write(testCharArra [all...] |
H A D | OldWriterTest.java | 102 tobj.write("01234".toCharArray()); 104 tobj.write("abcde".toCharArray()); 106 tobj.write("ABCDEFGHIJ".toCharArray()); 108 tobj.write("z".toCharArray()); // Just fill the writer to its limit! 110 tobj.write("LES JEUX SONT FAITS".toCharArray()); 119 tobj.write('a'); 120 tobj.write('b'); 123 tobj.write('c'); 132 tobj.write("01234"); 134 tobj.write("abcd [all...] |
H A D | OldFilterWriterTest.java | 48 public void write(char[] buffer, int offset, int count) throws IOException { method in class:OldFilterWriterTest.MockWriter 52 public void write(int oneChar) throws IOException { method in class:OldFilterWriterTest.MockWriter 56 public void write(String str, int offset, int count) throws IOException { method in class:OldFilterWriterTest.MockWriter 91 fw.write(0); 92 assertTrue("write(int) has not been called.", called); 97 fw.write(buffer, 0, 5); 98 assertTrue("write(char[], int, int) has not been called.", called); 108 fw.write(buffer, 0, -1); 115 fw.write(buffer, -1, 1); 122 fw.write(buffe [all...] |
H A D | CharArrayWriterTest.java | 28 a.write(str, 0, 26); 29 a.write('X'); 35 b.write("alphabravodelta", 5, 5);
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | CheckedOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 59 public void write(int b) throws IOException { method in class:CheckedOutputStream 60 out.write(b); 72 public void write(byte[] b, int off, int len) throws IOException { method in class:CheckedOutputStream 73 out.write(b, off, len);
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | GatheringByteChannel.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 33 * A channel that can write bytes from a sequence of buffers. 35 * <p> A <i>gathering</i> write operation writes, in a single invocation, a 57 * <p> An attempt is made to write up to <i>r</i> bytes to this channel, 78 * <p> Unless otherwise specified, a write operation will return only after 80 * depending upon their state, may write only some of the bytes or possibly 82 * write any more bytes than are free in the socket's output buffer. 85 * already initiated a write operation upon this channel, however, then an 116 * while the write operation is in progress 120 * while the write operatio 127 public long write(ByteBuffer[] srcs, int offset, int length) method in interface:GatheringByteChannel 164 public long write(ByteBuffer[] srcs) throws IOException; method in interface:GatheringByteChannel [all...] |
H A D | WritableByteChannel.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 33 * A channel that can write bytes. 35 * <p> Only one write operation upon a writable channel may be in progress at 36 * any given time. If one thread initiates a write operation upon a channel 37 * then any other thread that attempts to initiate another write operation will 39 * I/O operations may proceed concurrently with a write operation depends upon 55 * <p> An attempt is made to write up to <i>r</i> bytes to the channel, 68 * <p> Unless otherwise specified, a write operation will return only after 70 * depending upon their state, may write only some of the bytes or possibly 72 * write an 103 public int write(ByteBuffer src) throws IOException; method in interface:WritableByteChannel [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | CipherOutputStream.java | 18 * 2 along with this work; if not, write to the Free Software Foundation, 32 * that write() methods first process the data before writing them out 119 public void write(int b) throws IOException { method in class:CipherOutputStream 123 output.write(obuffer); 132 * The <code>write</code> method of 133 * <code>CipherOutputStream</code> calls the <code>write</code> 140 * @see javax.crypto.CipherOutputStream#write(byte[], int, int) 143 public void write(byte b[]) throws IOException { method in class:CipherOutputStream 144 write(b, 0, b.length); 153 * @param len the number of bytes to write 157 public void write(byte b[], int off, int len) throws IOException { method in class:CipherOutputStream [all...] |