Searched refs:write (Results 1 - 25 of 220) sorted by relevance

123456789

/libcore/luni/src/main/java/java/io/
H A DObjectOutput.java50 * 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 DWriter.java27 * 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...]
H A DOutputStream.java25 * <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 DFilterWriter.java81 * 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 DStringWriter.java108 * 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 DDataOutput.java21 * 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 DDataOutputStream.java83 * 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 DFilterOutputStream.java96 * 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...]
/libcore/luni/src/main/java/java/util/zip/
H A DGZIPOutputStream.java24 * 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
76 * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to
84 out.write(Deflater.DEFLATED);
85 out.write(0); // flags
87 out.write(0); // extra flags
88 out.write(
110 public void write(byte[] buffer, int off, int nbytes) throws IOException { method in class:GZIPOutputStream
[all...]
H A DCheckedOutputStream.java67 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 DInflaterOutputStream.java26 * An {@code OutputStream} filter to decompress data. Callers write
113 write();
126 public void write(int b) throws IOException, ZipException { method in class:InflaterOutputStream
127 write(new byte[] { (byte) b }, 0, 1);
141 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException { method in class:InflaterOutputStream
145 write();
148 private void write() throws IOException, ZipException { method in class:InflaterOutputStream
152 out.write(buf, 0, inflated);
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java33 /** size (in characters) for the write buffer */
70 writer.write(' ');
71 writer.write("xmlns");
73 writer.write(':');
74 writer.write(nspStack[i * 2]);
78 writer.write("=\"");
80 writer.write('"');
92 writer.write(close ? " />" : ">");
103 writer.write(c);
105 writer.write("
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldAndroidStringWriterTest.java28 a.write(str, 0, 26);
29 a.write('X');
33 a.write("alphabravodelta", 5, 5);
H A DFileOutputStreamTest.java36 fos2.write(1);
41 fos2.write(new byte[1], 0, 1);
46 fos1.write(1);
51 fos1.write(1);
56 fos1.write(new byte[1], 0, 1);
71 // ...but any explicit write is an error.
74 fos.write(bytes);
79 fos.write(bytes, 0, 2);
84 fos.write(42);
89 // ...except a 0-byte write
[all...]
H A DOldAndroidBufferedWriterTest.java34 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 DOldWriterTest.java102 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 DOldBufferedWriterTest.java38 bw.write("Hi", 0, 2);
57 bw.write("Hi", 0, 2);
70 bw.write(testString);
87 bw.write("This should not cause a flush");
106 bw.write("Hello");
108 bw.write("World");
124 // Test for method void java.io.BufferedWriter.write(char [], int, int)
127 bw.write(testCharArray, 500, 1000);
133 bw.write(testCharArray, 0, testCharArray.length);
135 bw.write(testCharArra
[all...]
H A DOldFilterWriterTest.java48 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 DCharArrayWriterTest.java28 a.write(str, 0, 26);
29 a.write('X');
35 b.write("alphabravodelta", 5, 5);
H A DOldAndroidByteArrayOutputStreamTest.java32 a.write(str.getBytes(), 0, 26);
33 a.write('X');
H A DOldOutputStreamTest.java36 public void write(int oneByte) throws IOException { method in class:OldOutputStreamTest.BasicOutputStream
59 bos.write(shortByteArray);
73 bos.write(longByteArray);
84 bos.write(shortByteArray, 6, 5);
98 bos.write(longByteArray, 5, 20);
103 bos.write(longByteArray, -1, 10);
112 bos.write(longByteArray, 10, -1);
121 bos.write(longByteArray, 20, 10);
/libcore/luni/src/main/java/java/nio/channels/
H A DGatheringByteChannel.java23 * 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...]
H A DWritableByteChannel.java23 * 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
/libcore/luni/src/main/java/java/security/
H A DDigestOutputStream.java81 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/crypto/src/main/java/org/conscrypt/
H A DSSLSocketOutputStream.java37 @Override public void write(int b) throws IOException { method in class:SSLSocketOutputStream
42 public void write(byte[] b, int off, int len) throws IOException { method in class:SSLSocketOutputStream

Completed in 655 milliseconds

123456789