Searched refs:write (Results 51 - 75 of 204) sorted by relevance

123456789

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DDigestOutputStreamTest.java138 * Test #1 for <code>write(int)</code> method<br>
151 dos.write(myMessage[i]);
154 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray()));
167 * Test #2 for <code>write(int)</code> method<br>
170 * Assertion: <code>write(int)</code> must not update digest if it is off<br>
187 dos.write(myMessage[i]);
191 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray()));
192 // check that digest value has not been updated by write()
204 * Test #3 for <code>write(int)</code> method<br>
207 * <code>OutputStream</code> not set. <code>write(in
600 public void write(int arg0) throws IOException { method in class:DigestOutputStreamTest.MyOutputStream
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldFileChannelTest.java149 writeOnlyFileChannel.write(writeBuffer);
157 writeOnlyFileChannel.write(writeBuffer);
180 fos.write(CONTENT_AS_BYTES);
201 fos.write(buf);
646 out.write(1);
657 readOnlyFileChannel.write(writeBuffer);
665 writeOnlyFileChannel.write(writeBuffer);
673 readWriteFileChannel.write(writeBuffer);
688 readOnlyFileChannel.write((ByteBuffer) null);
696 writeOnlyFileChannel.write((ByteBuffe
[all...]
H A DFileChannelTest.java56 // But you can write from a read-only buffer...
58 fc.write(readOnly);
59 fc.write(new ByteBuffer[] { readOnly });
60 fc.write(new ByteBuffer[] { readOnly }, 0, 1);
61 fc.write(readOnly, 0L);
68 fc.write(ByteBuffer.wrap("abcdABCD".getBytes("US-ASCII")));
92 assertEquals(8, fc.write(buffers));
103 fc.write(ByteBuffer.wrap("hello".getBytes("US-ASCII")));
108 fc.write(ByteBuffer.wrap(" world".getBytes("US-ASCII")));
/libcore/luni/src/main/java/libcore/net/http/
H A DFixedLengthOutputStream.java35 @Override public void write(byte[] buffer, int offset, int count) throws IOException { method in class:FixedLengthOutputStream
41 socketOut.write(buffer, offset, count);
H A DRetryableOutputStream.java54 @Override public synchronized void write(byte[] buffer, int offset, int count) method in class:RetryableOutputStream
61 content.write(buffer, offset, count);
/libcore/luni/src/main/java/java/io/
H A DFileOutputStream.java48 * <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 DByteArrayOutputStream.java187 * 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 DPrintWriter.java444 * 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 DRandomAccessFile.java38 * 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...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOutputStreamWriterTest.java26 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);
H A DOldAndroidPrintWriterTest.java31 a.write(str, 0, 26);
32 a.write('X');
36 a.write("alphabravodelta", 5, 5);
H A DOldDataOutputStreamTest.java74 os.write(testString.getBytes(), 5, testLength - 7);
92 os.write(nullByteArray, 0, 1);
99 os.write(byteArray, -1, 1);
106 os.write(byteArray, 0, -1);
113 os.write(byteArray, 1, 10);
121 os.write(42);
131 os.write(42);
H A DInputStreamReaderTest.java34 pos.write("hello".getBytes("UTF-8"));
/libcore/luni/src/main/java/java/util/zip/
H A DZipOutputStream.java31 * {@code ZipOutputStream} is used to write {@code ZipEntries} to the underlying
35 * While {@code DeflaterOutputStream} can write a compressed <i>ZIP-archive</i>
36 * entry, this extension can write uncompressed entries as well. In this case
54 * zos.write(bytes);
102 * the {@code OutputStream} to write the data to.
199 cDir.write(nameBytes);
202 cDir.write(currentEntry.extra);
206 cDir.write(c.getBytes());
247 cDir.write(comment.getBytes());
258 * the entry can then be written using {@code write()}
412 public void write(byte[] buffer, int offset, int byteCount) throws IOException { method in class:ZipOutputStream
[all...]
H A DDeflaterOutputStream.java55 * is the {@code OutputStream} where to write the compressed data
73 * is the OutputStream where to write the compressed data to.
84 * is the {@code OutputStream} where to write the compressed data
132 * Compress the data in the input buffer and write it to the underlying
141 out.write(buf, 0, byteCount);
178 out.write(buf, 0, byteCount);
183 @Override public void write(int i) throws IOException { method in class:DeflaterOutputStream
193 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { method in class:DeflaterOutputStream
195 throw new IOException("attempt to write after finish");
218 out.write(bu
[all...]
/libcore/support/src/test/java/tests/http/
H A DMockResponse.java120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII));
121 bytesOut.write("\r\n".getBytes(ASCII));
122 bytesOut.write(body, pos, chunkSize);
123 bytesOut.write("\r\n".getBytes(ASCII));
126 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf
/libcore/luni/src/main/java/java/util/prefs/
H A DXMLParser.java151 out.write(HEADER);
155 out.write(DOCTYPE);
156 out.write(" '");
157 out.write(PREFS_DTD_NAME);
158 out.write("'>");
239 out.write("</");
240 out.write(tagName);
241 out.write(">");
248 out.write("<");
249 out.write(tagNam
[all...]
/libcore/luni/src/main/java/java/util/jar/
H A DManifest.java181 * The {@code OutputStream} to write to.
185 public void write(OutputStream os) throws IOException { method in class:Manifest
186 write(this, os);
301 * the manifest to write out.
303 * The {@code OutputStream} to write to.
307 static void write(Manifest manifest, OutputStream out) throws IOException { method in class:Manifest
322 out.write(LINE_SEPARATOR);
333 out.write(LINE_SEPARATOR);
340 os.write(nameString.getBytes(Charsets.US_ASCII));
341 os.write(VALUE_SEPARATO
[all...]
H A DJarOutputStream.java26 * The {@code JarOutputStream} is used to write data in the {@code JarFile}
39 * the {@code OutputStream} to write to
53 this.manifest.write(this);
62 * the {@code OutputStream} to write to.
75 * the {@code ZipEntry} to write to.
/libcore/luni/src/main/java/java/nio/channels/
H A DChannels.java70 * in non-blocking mode and {@code write} is called.</li>
163 * the Channel to write to.
256 public synchronized void write(int oneByte) throws IOException { method in class:Channels.ChannelOutputStream
258 write(wrappedByte);
262 public synchronized void write(byte[] source, int offset, int length) throws IOException { method in class:Channels.ChannelOutputStream
267 total += channel.write(buffer);
336 public synchronized int write(ByteBuffer source) throws IOException { method in class:Channels.OutputStreamChannel
348 outputStream.write(buf, 0, bytesRemain);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldUnixSocketTest.java34 // Simple read/write test over the IO streams
47 clientOut.write(new byte[256]);
52 out.write(new byte[42]);
109 o.write(1);
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DHprofBinaryToAscii.java69 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/org/apache/harmony/xnet/provider/jsse/
H A DFinished.java61 out.write(data);
/libcore/luni/src/main/java/org/w3c/dom/ls/
H A DLSSerializer.java50 * <code>LSSerializer.write</code>, outputs the entity expansion but no
269 * <code>LSSerializer.write</code> for details on how to find the output
393 public boolean write(Node nodeArg, method in interface:LSSerializer
398 * A convenience method that acts as if <code>LSSerializer.write</code>
403 * @param uri The URI to write to.
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DDeflaterOutputStreamTest.java76 out.write(1);
77 out.write(2);
78 out.write(3);
111 dos.write(output);

Completed in 837 milliseconds

123456789