/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 | BinaryHprofWriter.java | 47 public static void write(HprofData data, OutputStream outputStream) throws IOException { method in class:BinaryHprofWriter 48 new BinaryHprofWriter(data, outputStream).write(); 56 private void write() throws IOException { method in class:BinaryHprofWriter 172 out.write(bytes, 0, bytes.length);
|
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/dalvik/src/test/java/dalvik/system/profiler/ |
H A D | SamplingProfilerTest.java | 263 AsciiHprofWriter.write(hprofData, out); 274 BinaryHprofWriter.write(hprofData, out); 282 debug.write(bytes);
|
/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 | 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 | ByteArrayOutputStream.java | 187 * the number of bytes of {@code buffer} to write. 196 public synchronized void write(byte[] buffer, int offset, int len) { method in class:ByteArrayOutputStream 214 public synchronized void write(int oneByte) { method in class:ByteArrayOutputStream 226 * an OutputStream on which to write the contents of this stream. 231 out.write(buf, 0, count);
|
H A D | CharArrayWriter.java | 99 * Resets this writer. The current write position is reset to the beginning 156 * the non-null array containing characters to write. 158 * the index of the first character in {@code buf} to write. 160 * maximum number of characters to write. 166 public void write(char[] buffer, int offset, int len) { method in class:CharArrayWriter 181 * the character to write. 184 public void write(int oneChar) { method in class:CharArrayWriter 203 public void write(String str, int offset, int count) { method in class:CharArrayWriter 223 * the non-null {@code Writer} on which to write the contents. 227 * if an error occurs attempting to write ou [all...] |
H A D | DataOutput.java | 21 * Defines an interface for classes that are able to write big-endian typed data to some 37 * the buffer to write. 41 public abstract void write(byte[] buffer) throws IOException; method in interface:DataOutput 48 * the buffer to write. 50 * the index of the first byte in {@code buffer} to write. 52 * the number of bytes from the {@code buffer} to write. 56 public abstract void write(byte[] buffer, int offset, int count) throws IOException; method in interface:DataOutput 62 * the byte to write. 67 public abstract void write(int oneByte) throws IOException; method in interface:DataOutput 73 * the boolean value to write [all...] |
H A D | DataOutputStream.java | 83 * the buffer to write to the target stream. 85 * the index of the first byte in {@code buffer} to write. 87 * the number of bytes from the {@code buffer} to write. 94 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:DataOutputStream 98 out.write(buffer, offset, count); 107 * the byte to write to the target stream. 113 public void write(int oneByte) throws IOException { method in class:DataOutputStream 114 out.write(oneByte); 122 * the boolean value to write to the target stream. 128 out.write(va [all...] |
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 | FileOutputStream.java | 48 * <p>Use {@link FileWriter} to write characters, as opposed to bytes, to a file. 166 * Returns a write-only {@link FileChannel} that shares its position with 186 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:FileOutputStream 187 IoBridge.write(fd, buffer, byteOffset, byteCount); 191 public void write(int oneByte) throws IOException { method in class:FileOutputStream 192 write(new byte[] { (byte) oneByte }, 0, 1);
|
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 | ObjectOutputStream.java | 31 * A specialized {@link OutputStream} that is able to write (serialize) Java 55 * Where we write to 65 * Where we write primitive types to 70 * Where the write primitive types are actually written to 236 public abstract void write(ObjectOutput out) throws IOException; method in class:ObjectOutputStream.PutField 275 // So write...() methods can be used by 315 * Do the necessary work to see if the receiver can be used to write 354 * Default method to write objects to this stream. Serializable fields 398 // write primitive types we had and the marker of end-of-buffer 399 output.write(writte 643 public void write(byte[] buffer, int offset, int length) throws IOException { method in class:ObjectOutputStream 659 public void write(int value) throws IOException { method in class:ObjectOutputStream [all...] |
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 | OutputStreamWriter.java | 48 * stream to write converted characters to. The default character encoding 52 * the non-null target stream to write converted bytes to. 60 * stream to write converted characters to and {@code charsetName} as the character 65 * the target stream to write converted bytes to. 91 * stream to write converted characters to and {@code cs} as the character 95 * the target stream to write converted bytes to. 109 * stream to write converted characters to and {@code charsetEncoder} as the character 113 * the target stream to write converted bytes to. 167 out.write(bytes.array(), bytes.arrayOffset(), position); 207 // Some encoders (such as ISO-2022-JP) have stuff to write ou 261 public void write(char[] buffer, int offset, int count) throws IOException { method in class:OutputStreamWriter 282 public void write(int oneChar) throws IOException { method in class:OutputStreamWriter 311 public void write(String str, int offset, int count) throws IOException { method in class:OutputStreamWriter [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 | 127 * Separate threads should be used to write to a {@code PipedWriter} and to 132 * the buffer to write. 134 * the index of the first character in {@code buffer} to write. 136 * the number of characters from {@code buffer} to write to this 143 * waiting for space to write data. This case is not currently 154 public void write(char[] buffer, int offset, int count) throws IOException { method in class:PipedWriter 166 * Separate threads should be used to write to a {@code PipedWriter} and to 171 * the character to write. 174 * waiting for space to write data. This case is not currently 183 public void write(in method in class:PipedWriter [all...] |
H A D | PrintStream.java | 420 * {@code write(int)}. 426 * @see #write(int) 440 write(str.getBytes()); 442 write(str.getBytes(encoding)); 516 * then written to the target stream with {@code write(int)}. 522 * @see #write(int) 554 * the index of the first byte in {@code buffer} to write. 556 * the number of bytes in {@code buffer} to write. 563 public void write(byte[] buffer, int offset, int length) { method in class:PrintStream 571 out.write(buffe 594 public synchronized void write(int oneByte) { method in class:PrintStream [all...] |
H A D | PrintWriter.java | 444 * The bytes are then written to the target with {@code write(int)}. 450 * @see #write(int) 453 write(str != null ? str : String.valueOf((Object) null)); 542 * then written to the target with {@code write(int)}. Finally, this writer 575 * the non-null array containing characters to write. 578 public void write(char[] buf) { method in class:PrintWriter 579 write(buf, 0, buf.length); 590 * the buffer to write to the target. 592 * the index of the first character in {@code buffer} to write. 594 * the number of characters in {@code buffer} to write 600 public void write(char[] buf, int offset, int count) { method in class:PrintWriter 615 public void write(int oneChar) { method in class:PrintWriter 640 public void write(String str) { method in class:PrintWriter 659 public void write(String str, int offset, int count) { method in class:PrintWriter [all...] |
H A D | RandomAccessFile.java | 38 * opened in read/write mode, write operations are available as well. The 39 * position of the next read or write operation can be moved forwards and 69 * thrown if any of the {@code write} methods is called.</td> 108 // Sync file and metadata with every write 588 * {@code read}, {@code write} or {@code skip} operations are done. The 591 * by a {@code write} operation. 672 * the buffer to write. 676 public void write(byte[] buffer) throws IOException { method in class:RandomAccessFile 677 write(buffe 691 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:RandomAccessFile 709 public void write(int oneByte) throws IOException { method in class:RandomAccessFile [all...] |
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...] |