/libcore/luni/src/main/java/java/nio/channels/ |
H A D | WritableByteChannel.java | 23 * A {@code WritableByteChannel} is a type of {@link Channel} that can write 27 * if a write is already in progress on the channel then subsequent writes will 28 * block until the first write completes. It is undefined whether non-write 41 * The call may block if other threads are also attempting to write on the 56 * if another thread closes the channel during the write. 59 * write. 63 public int write(ByteBuffer buffer) throws IOException; method in interface:WritableByteChannel
|
H A D | GatheringByteChannel.java | 23 * The interface for channels that can write a set of buffers in a single 32 * This method is equivalent to: {@code write(buffers, 0, buffers.length);} 38 * if the channel is closed by another thread during this write 56 public long write(ByteBuffer[] buffers) throws IOException; method in interface:GatheringByteChannel 59 * Attempts to write all <code>remaining()</code> bytes from {@code length} 63 * If a write operation is in progress, subsequent threads will block until 64 * the write is completed and then contend for the ability to write. 76 * if the channel is closed by another thread during this write 93 public long write(ByteBuffe method in interface:GatheringByteChannel [all...] |
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | AsciiHprofWriter.java | 40 public static void write(HprofData data, OutputStream outputStream) throws IOException { method in class:AsciiHprofWriter 41 new AsciiHprofWriter(data, outputStream).write(); 49 private void write() throws IOException { method in class:AsciiHprofWriter
|
H A D | HprofBinaryToAscii.java | 69 return write(hprofData); 80 return write(hprofData); 161 private static boolean write(HprofData hprofData) { method in class:HprofBinaryToAscii 163 AsciiHprofWriter.write(hprofData, System.out);
|
/libcore/luni/src/main/java/java/io/ |
H A D | BufferedOutputStream.java | 107 * the number of bytes from {@code buffer} to write to this 114 * if an error occurs attempting to write to this stream. 121 public synchronized void write(byte[] buffer, int offset, int length) throws IOException { method in class:BufferedOutputStream 131 out.write(buffer, offset, length); 168 * if an error occurs attempting to write to this stream. 171 public synchronized void write(int oneByte) throws IOException { method in class:BufferedOutputStream 174 out.write(buf, 0, count); 185 out.write(buf, 0, count);
|
H A D | EmulatedFieldsForDumping.java | 30 // Record the ObjectOutputStream that created this PutField for checking in 'write'. 196 public void write(ObjectOutput output) throws IOException { method in class:EmulatedFieldsForDumping 198 throw new IllegalArgumentException("Attempting to write to a different stream than the one that created this PutField");
|
H A D | FilterOutputStream.java | 96 * the buffer to write. 98 * the index of the first byte in {@code buffer} to write. 100 * the number of bytes in {@code buffer} to write. 109 public void write(byte[] buffer, int offset, int length) throws IOException { method in class:FilterOutputStream 112 // Call write() instead of out.write() since subclasses could 113 // override the write() method. 114 write(buffer[offset + i]); 128 public void write(int oneByte) throws IOException { method in class:FilterOutputStream 129 out.write(oneByt [all...] |
H A D | FilterWriter.java | 81 * the buffer to write. 83 * the index of the first character in {@code buffer} to write. 85 * the number of characters in {@code buffer} to write. 90 public void write(char[] buffer, int offset, int count) throws IOException { method in class:FilterWriter 92 out.write(buffer, offset, count); 101 * the char to write to the target writer. 106 public void write(int oneChar) throws IOException { method in class:FilterWriter 108 out.write(oneChar); 120 * the index of the first character in {@code str} to write. 122 * the number of chars in {@code str} to write 127 public void write(String str, int offset, int count) throws IOException { method in class:FilterWriter [all...] |
H A D | ObjectOutput.java | 50 * the buffer to write. 54 public void write(byte[] buffer) throws IOException; method in interface:ObjectOutput 62 * the buffer to write. 64 * the index of the first byte in {@code buffer} to write. 66 * the number of bytes from {@code buffer} to write to the target 71 public void write(byte[] buffer, int offset, int count) throws IOException; method in interface:ObjectOutput 79 * the byte to write. 83 public void write(int value) throws IOException; method in interface:ObjectOutput 89 * the object to write.
|
H A D | OutputStream.java | 25 * <p>Most clients will use output streams that write data to the file system 42 * #write(int)} and {@link #write(byte[],int,int) write(byte[],int,int)}. The 79 * Equivalent to {@code write(buffer, 0, buffer.length)}. 81 public void write(byte[] buffer) throws IOException { method in class:OutputStream 82 write(buffer, 0, buffer.length); 94 * the number of bytes from {@code buffer} to write to this 103 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:OutputStream 106 write(buffe 119 public abstract void write(int oneByte) throws IOException; method in class:OutputStream [all...] |
H A D | PipedOutputStream.java | 122 * Separate threads should be used to write to a {@code PipedOutputStream} 127 * the buffer to write. 129 * the index of the first byte in {@code buffer} to write. 131 * the number of bytes from {@code buffer} to write to this 138 * waiting for space to write data. This case is not currently 146 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:PipedOutputStream 147 super.write(buffer, offset, count); 155 * Separate threads should be used to write to a {@code PipedOutputStream} 160 * the byte to write. 163 * waiting for space to write dat 171 public void write(int oneByte) throws IOException { method in class:PipedOutputStream [all...] |
H A D | PipedWriter.java | 128 * Separate threads should be used to write to a {@code PipedWriter} and to 133 * the buffer to write. 135 * the index of the first character in {@code buffer} to write. 137 * the number of characters from {@code buffer} to write to this 144 * waiting for space to write data. This case is not currently 155 public void write(char[] buffer, int offset, int count) throws IOException { method in class:PipedWriter 167 * Separate threads should be used to write to a {@code PipedWriter} and to 172 * the character to write. 175 * waiting for space to write data. This case is not currently 184 public void write(in method in class:PipedWriter [all...] |
H A D | BufferedWriter.java | 139 out.write(buf, 0, pos); 158 * if an error occurs attempting to write to this writer. 161 write(System.lineSeparator()); 171 * the array containing characters to write. 175 * the maximum number of characters to write. 184 public void write(char[] buffer, int offset, int count) throws IOException { method in class:BufferedWriter 192 out.write(buffer, offset, count); 204 out.write(this.buf, 0, this.buf.length); 210 out.write(buffer, offset, available); 227 * the character to write 232 public void write(int oneChar) throws IOException { method in class:BufferedWriter 264 public void write(String str, int offset, int count) throws IOException { method in class:BufferedWriter [all...] |
H A D | FileOutputStream.java | 47 * <p>Use {@link FileWriter} to write characters, as opposed to bytes, to a file. 165 * Returns a write-only {@link FileChannel} that shares its position with 185 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:FileOutputStream 186 IoBridge.write(fd, buffer, byteOffset, byteCount); 190 public void write(int oneByte) throws IOException { method in class:FileOutputStream 191 write(new byte[] { (byte) oneByte }, 0, 1);
|
H A D | StringWriter.java | 108 * the non-null character array to write. 110 * the index of the first character in {@code chars} to write. 112 * the maximum number of characters to write. 118 public void write(char[] chars, int offset, int count) { method in class:StringWriter 131 * the character to write to this writer's {@code StringBuffer}. 134 public void write(int oneChar) { method in class:StringWriter 143 * the non-null string containing the characters to write. 146 public void write(String str) { method in class:StringWriter 155 * the non-null string containing the characters to write. 157 * the index of the first character in {@code str} to write 165 public void write(String str, int offset, int count) { method in class:StringWriter [all...] |
H A D | Writer.java | 27 * needs to be subclassed, and at least the {@link #write(char[], int, int)}, 89 * the non-null array containing characters to write. 93 public void write(char[] buf) throws IOException { method in class:Writer 94 write(buf, 0, buf.length); 102 * the non-null character array to write. 104 * the index of the first character in {@code buf} to write. 106 * the maximum number of characters to write. 113 public abstract void write(char[] buf, int offset, int count) throws IOException; method in class:Writer 120 * the character to write to the target. 124 public void write(in method in class:Writer 140 public void write(String str) throws IOException { method in class:Writer 160 public void write(String str, int offset, int count) throws IOException { method in class:Writer [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | DigestOutputStream.java | 81 public void write(int b) throws IOException { method in class:DigestOutputStream 86 // write the byte 87 out.write(b); 95 * the buffer to write to. 97 * the index of the first byte in {@code b} to write. 99 * the number of bytes in {@code b} to write. 104 public void write(byte[] b, int off, int len) throws IOException { method in class:DigestOutputStream 109 // write len bytes 110 out.write(b, off, len);
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | CheckedOutputStream.java | 67 public void write(int val) throws IOException { method in class:CheckedOutputStream 68 out.write(val); 82 * number of bytes to write to the output stream. 87 public void write(byte[] buf, int off, int nbytes) throws IOException { method in class:CheckedOutputStream 88 out.write(buf, off, nbytes);
|
H A D | GZIPOutputStream.java | 24 * The {@code GZIPOutputStream} class is used to write data to a stream in the 36 * zos.write(bytes); 50 * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to 58 * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to 67 * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to 75 * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to 83 out.write(Deflater.DEFLATED); 84 out.write(0); // flags 86 out.write(0); // extra flags 87 out.write( 109 public void write(byte[] buffer, int off, int nbytes) throws IOException { method in class:GZIPOutputStream [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
H A D | CipherOutputStream.java | 26 * This class wraps an output stream and a cipher so that {@code write} methods 44 * the output stream to write data to. 60 * the output stream to write the data to. 70 * the byte to write. 74 @Override public void write(int b) throws IOException { method in class:CipherOutputStream 91 @Override public void write(byte[] b, int off, int len) throws IOException { method in class:CipherOutputStream 97 out.write(result); 129 out.write(result);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OutputStreamWriterTest.java | 26 public void write(int b) { method in class:OutputStreamWriterTest.FlushCountingOutputStream 39 writer.write(chars); 50 // We write enough characters to fill that, but leave data in the encoder. 52 // On flush/close, the writer needs to admit defeat and write the replacement character. 58 writer.write(cs, 0, cs.length); 62 writer.write(0xdf9f);
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleOutputStream.java | 55 // public void write(byte buffer[]) throws IOException { 60 // write(buffer[i]); 65 // public void write(byte buffer[], int offset, int count) throws IOException { 73 // write(buffer[i]); 78 public void write(int oneByte) throws IOException { method in class:Support_ASimpleOutputStream
|
H A D | Support_StringWriter.java | 103 * the non-null array containing characters to write. 107 * maximum number of characters to write 113 public void write(char[] buf, int offset, int count) { method in class:Support_StringWriter 131 * The character to write 135 public void write(int oneChar) { method in class:Support_StringWriter 146 * the non-null String containing the characters to write. 150 public void write(String str) { method in class:Support_StringWriter 162 * the non-null String containing the characters to write. 166 * the number of characters to retrieve and write. 172 public void write(Strin method in class:Support_StringWriter [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | MockSocketChannel.java | 69 public int write(ByteBuffer arg0) throws IOException { method in class:MockSocketChannel 74 public long write(ByteBuffer[] arg0, int arg1, int arg2) throws IOException { method in class:MockSocketChannel
|
/libcore/luni/src/main/java/java/nio/ |
H A D | PipeImpl.java | 113 public int write(ByteBuffer buffer) throws IOException { method in class:PipeImpl.PipeSinkChannel 114 return channel.write(buffer); 117 public long write(ByteBuffer[] buffers) throws IOException { method in class:PipeImpl.PipeSinkChannel 118 return channel.write(buffers); 121 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { method in class:PipeImpl.PipeSinkChannel 122 return channel.write(buffers, offset, length);
|