Searched refs:readFully (Results 1 - 25 of 38) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DDataInputStreamTest.java130 * java.io.DataInputStream#readFully(byte[])
137 dis.readFully(rbytes);
143 * java.io.DataInputStream#readFully(byte[], int, int)
150 dis.readFully(rbytes, 0, fileString.length());
156 * java.io.DataInputStream#readFully(byte[], int, int)
165 is.readFully(byteArray, -1, -1);
172 is.readFully(byteArray, 0, -1);
179 is.readFully(byteArray, 1, -1);
185 is.readFully(byteArray, -1, 0);
186 is.readFully(byteArra
486 public void readFully(byte[] buffer) throws IOException { method in class:DataInputStreamTest.TestDataInputStream
489 public void readFully(byte[] buffer, int offset, int count) method in class:DataInputStreamTest.TestDataInputStream
[all...]
/libcore/luni/src/main/java/java/io/
H A DDataInput.java110 * Equivalent to {@code readFully(dst, 0, dst.length);}.
112 public abstract void readFully(byte[] dst) throws IOException; method in interface:DataInput
140 public abstract void readFully(byte[] dst, int offset, int byteCount) throws IOException; method in interface:DataInput
H A DDataInputStream.java94 public final void readFully(byte[] dst) throws IOException { method in class:DataInputStream
95 readFully(dst, 0, dst.length);
98 public final void readFully(byte[] dst, int offset, int byteCount) throws IOException { method in class:DataInputStream
99 Streams.readFully(in, dst, offset, byteCount);
103 Streams.readFully(in, scratch, 0, SizeOf.INT);
147 Streams.readFully(in, scratch, 0, SizeOf.LONG);
152 Streams.readFully(in, scratch, 0, SizeOf.SHORT);
178 in.readFully(buf, 0, utfSize);
H A DRandomAccessFile.java266 * has been reached. See also {@link #readFully}.
281 * See also {@link #readFully}.
381 * Equivalent to {@code readFully(dst, 0, dst.length);}.
383 public final void readFully(byte[] dst) throws IOException { method in class:RandomAccessFile
384 readFully(dst, 0, dst.length);
413 public final void readFully(byte[] dst, int offset, int byteCount) throws IOException { method in class:RandomAccessFile
438 readFully(scratch, 0, SizeOf.INT);
499 readFully(scratch, 0, SizeOf.LONG);
516 readFully(scratch, 0, SizeOf.SHORT);
H A DObjectInputStream.java554 input.readFully(result);
570 input.readFully(result);
1165 public void readFully(byte[] dst) throws IOException { method in class:ObjectInputStream
1166 primitiveTypes.readFully(dst);
1185 public void readFully(byte[] dst, int offset, int byteCount) throws IOException { method in class:ObjectInputStream
1186 primitiveTypes.readFully(dst, offset, byteCount);
1446 input.readFully(byteArray, 0, size);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldDataInputStreamTest.java157 dis.readFully(rbytes);
163 dis.readFully(rbytes);
172 dis.readFully(rbytes);
186 dis.readFully(rbytes, 2, testLength - 4);
193 dis.readFully(rbytes, 0, testLength);
202 dis.readFully(rbytes, 0, testLength);
215 is.readFully(byteArray, 0, -1);
222 is.readFully(byteArray, 0, byteArray.length + 1);
229 is.readFully(byteArray, 1, byteArray.length);
236 is.readFully(byteArra
[all...]
H A DOldRandomAccessFileTest.java755 * java.io.RandomAccessFile#readFully(byte[])
764 raf.readFully(null);
770 raf.readFully(buf);
775 raf.readFully(buf);
789 raf.readFully(buf);
798 * java.io.RandomAccessFile#readFully(byte[], int, int)
807 raf.readFully(null);
813 raf.readFully(buf, 5, testLength - 10);
823 raf.readFully(buf, 3, testLength - 6);
831 raf.readFully(bu
[all...]
/libcore/luni/src/test/etc/loading-test-jar/
H A DTestMethods.java66 public static byte[] readFully(InputStream in) throws IOException { method in class:TestMethods
129 byte[] contents = readFully(in);
185 byte[] contents = readFully(in);
/libcore/support/src/test/java/libcore/tlswire/record/
H A DTlsRecord.java37 in.readFully(result.fragment);
/libcore/luni/src/main/java/libcore/io/
H A DStreams.java59 public static void readFully(InputStream in, byte[] dst) throws IOException { method in class:Streams
60 readFully(in, dst, 0, dst.length);
67 * Used to implement {@link java.io.DataInputStream#readFully(byte[], int, int)}.
69 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOException { method in class:Streams
93 public static byte[] readFully(InputStream in) throws IOException { method in class:Streams
117 public static String readFully(Reader reader) throws IOException { method in class:Streams
H A DIoUtils.java107 return new FileReader(absolutePath).readFully().toByteArray();
114 return new FileReader(absolutePath).readFully().toString(StandardCharsets.UTF_8);
230 public FileReader readFully() throws IOException { method in class:IoUtils.FileReader
/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DHandshakeMessage.java51 in.readFully(result.body);
H A DClientHello.java47 in.readFully(random);
72 in.readFully(extensionsBytes);
/libcore/support/src/test/java/libcore/tlswire/util/
H A DIoUtils.java32 in.readFully(result);
/libcore/luni/src/main/java/java/util/zip/
H A DZipInputStream.java193 Streams.readFully(in, hdrBuf, 0, EXTHDR + 8);
195 Streams.readFully(in, hdrBuf, 0, EXTHDR);
235 Streams.readFully(in, hdrBuf, 0, 4);
246 Streams.readFully(in, hdrBuf, 0, (LOCHDR - LOCVER));
284 Streams.readFully(in, extraData, 0, extraLength);
301 Streams.readFully(in, stringBytesBuf, 0, byteLength);
H A DGZIPInputStream.java209 Streams.readFully(in, header, 0, header.length);
221 Streams.readFully(in, header, 0, 2);
245 Streams.readFully(in, header, 0, 2);
262 Streams.readFully(in, b, copySize, trailerSize - copySize);
H A DZipEntry.java383 Streams.readFully(cdStream, cdeHdrBuf, 0, cdeHdrBuf.length);
425 Streams.readFully(cdStream, nameBytes, 0, nameBytes.length);
433 Streams.readFully(cdStream, extra, 0, extraLength);
438 Streams.readFully(cdStream, commentBytes, 0, commentByteCount);
H A DZip64.java101 raf.readFully(zip64EocdLocator);
140 raf.readFully(zip64Eocd);
/libcore/luni/src/main/java/java/util/jar/
H A DJarFile.java337 metaEntriesMap.put(MANIFEST_NAME, Streams.readFully(
351 metaEntriesMap.put(entryName.toUpperCase(Locale.US), Streams.readFully(is));
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DStrictJarFileTest.java81 assertEquals("Blah", new String(Streams.readFully(jarFile.getInputStream(ze)),
104 assertEquals("Blah", new String(Streams.readFully(jarFile.getInputStream(ze)),
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DObjectInputStreamTest.java275 ois.readFully(buf);
283 ois.readFully(buf);
299 ois.readFully(buf);
309 // Test for method void java.io.ObjectInputStream.readFully(byte [],
315 ois.readFully(buf, 0, testLength);
322 ois.readFully(buf);
336 ois.readFully(buf, 0, -1);
342 ois.readFully(buf, -1,1);
348 ois.readFully(buf, testLength, 1);
359 ois.readFully(bu
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DGZIPInputStreamTest.java189 byte[] unzipped = Streams.readFully(gzip);
/libcore/luni/src/test/java/libcore/util/
H A DZoneInfoDBTest.java60 in.readFully(content);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterInputStreamTest.java146 byte[] contents = Streams.readFully(dis);
164 byte[] contents = Streams.readFully(dis);
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
H A DSHA1PRNG_SecureRandomImpl.java544 Streams.readFully(ois, nextBytes, nextBIndex, HASHBYTES_TO_USE - nextBIndex);
556 Streams.readFully(devURandom, result, 0, byteCount);

Completed in 567 milliseconds

12