Searched refs:read (Results 51 - 75 of 2353) sorted by relevance

1234567891011>>

/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/
H A DConnector.java54 * Closes the connection. Any subsequent attempts to read
70 * until the next read() call is made. Callers should copy
73 * @return The data read or null if there is no more data
76 public ByteBuffer read(); method in interface:Connector
/external/oauth/core/src/main/java/net/oauth/client/
H A DExcerptInputStream.java23 int read;
24 while ((read = read(excerpt, total, LIMIT - total)) != -1 && ((total += read) < LIMIT));
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DCharArrayReaderTest.java44 int c = cr.read();
56 cr.read();
57 fail("Failed to throw exception on read from closed stream");
73 cr.read();
75 assertEquals("Failed to mark correct position", 'W', cr.read());
87 * @tests java.io.CharArrayReader#read()
91 assertEquals("Read returned incorrect char", 'H', cr.read());
93 assertTrue("Incorrect double byte char", cr.read() == '\u8765');
97 * @tests java.io.CharArrayReader#read(char[], int, int)
102 cr.read(
[all...]
H A DInputStreamTest.java30 in.read(null, -1, 1);
38 public int read() throws IOException { method in class:InputStreamTest.MockInputStream
H A DInputStreamReaderTest.java41 // A ByteArrayInputStream that only returns a single byte per read
69 public int read() { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
78 public int read(byte[] buffer, int offset, int length) { method in class:InputStreamReaderTest.LimitedByteArrayInputStream
145 is.read();
172 int count = reader.read(new char[1]);
178 reader.read();
326 * @tests java.io.InputStreamReader#read()
329 assertEquals('T', (char) reader.read());
330 assertEquals('h', (char) reader.read());
331 assertEquals('i', (char) reader.read());
[all...]
H A DBufferedInputStreamTest.java50 str.read();
63 str.read();
73 // Ensure buffer gets filled by evaluating one read
74 is.read();
81 is.read();
83 // is.read should now throw an exception because it will have to
85 is.read();
86 fail("Exception should have been triggered by read()");
150 public int read() {
155 public int read(byt
[all...]
H A DPushbackReaderTest.java42 pbr.read(buf, 0, 5);
66 pbr.read();
95 * @tests java.io.PushbackReader#read()
98 // Test for method int java.io.PushbackReader.read()
101 pbr.read();
102 c = (char) pbr.read();
103 assertTrue("Failed to read char: " + c, c == pbString.charAt(1));
106 assertTrue("Wrong double byte character", reader.read() == '\u8765');
108 fail("IOException during read test : " + e.getMessage());
113 * @tests java.io.PushbackReader#read(cha
[all...]
H A DByteArrayInputStreamTest.java85 is.read();
87 is.read(); // Should be able to read from a closed stream
98 is.read(buf1, 0, buf1.length);
100 is.read(buf2, 0, buf2.length);
114 * @tests ByteArrayInputStream#read()
118 int c = isr.read();
120 assertTrue("read returned incorrect char", c == fileString.charAt(0));
124 * @tests ByteArrayInputStream#read(byte[], int, int)
130 is.read(buf
[all...]
H A DSequenceInputStreamTest.java90 si.read(buf, 0, s1.length());
91 si.read(buf, s1.length(), s2.length());
95 fail("IOException during read test : " + e.getMessage());
124 * @tests java.io.SequenceInputStream#read()
127 // Test for method int java.io.SequenceInputStream.read()
129 si.read();
130 assertTrue("Read incorrect char", (char) si.read() == s1.charAt(1));
132 fail("IOException during read test: " + e.getMessage());
137 int result = si.read();
142 * @tests java.io.SequenceInputStream#read(byt
[all...]
H A DPipedReaderTest.java130 preader.read(c, 0, 11);
147 preader.read(c, 0, 11);
159 * @tests java.io.PipedReader#read()
169 c[i] = (char) preader.read();
175 * @tests java.io.PipedReader#read(char[], int, int)
187 n = preader.read(c, x, 11 - x);
193 preader.read(c, 8, 7);
206 obj.read(new char[0], (int) 0, (int) -1);
217 obj.read(new char[0], (int) -1, (int) 0);
228 obj.read(ne
[all...]
/external/chromium_org/remoting/host/native_messaging/
H A Dnative_messaging_writer_unittest.cc58 int read = base::ReadPlatformFileAtCurrentPos( local
60 EXPECT_EQ(4, read);
62 read = base::ReadPlatformFileAtCurrentPos(read_handle_,
64 EXPECT_EQ(static_cast<int>(length), read); local
71 // and verify the read end immediately hits EOF.
74 read = base::ReadPlatformFileAtCurrentPos(read_handle_, &unused, 1);
75 EXPECT_LE(read, 0);
88 int read; local
91 read = base::ReadPlatformFileAtCurrentPos(
93 EXPECT_EQ(4, read) << "
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DRandomAmountInputStream.java33 @Override public int read(byte[] b, int off, int len) throws IOException { method in class:RandomAmountInputStream
34 return super.read(b, off, random.nextInt(len) + 1);
H A DMultiReaderTest.java63 assertEquals('a', joinedReader.read());
64 assertEquals('a', joinedReader.read());
65 assertEquals(-1, joinedReader.read());
97 assertEquals(expected.charAt(0), joinedReader.read());
99 assertEquals(expected.charAt(2), joinedReader.read());
101 assertEquals(expected.charAt(7), joinedReader.read());
103 assertEquals(expected.charAt(9), joinedReader.read());
104 assertEquals(-1, joinedReader.read());
113 assertEquals('a', joinedReader.read());
/external/proguard/src/proguard/io/
H A DJarReader.java27 * This DataEntryReader lets a given DataEntryReader read all data entries of
28 * the read jar/war/zip data entries.
48 public void read(DataEntry dataEntry) throws IOException method in class:JarReader
65 dataEntryReader.read(new ZipDataEntry(dataEntry,
H A DManifestRewriter.java75 public int read() throws IOException method in class:ManifestRewriter.SplitLineReader
85 int c1 = super.read();
96 int c2 = super.read();
110 int c3 = super.read();
122 public int read(char[] cbuf, int off, int len) throws IOException method in class:ManifestRewriter.SplitLineReader
128 int c = read();
147 int c = read();
/external/chromium_org/third_party/angle/tests/preprocessor_tests/
H A Dinput_test.cpp38 EXPECT_EQ(0u, input.read(NULL, 1));
81 EXPECT_EQ(1u, input1.read(buf, maxSize));
83 EXPECT_EQ(1u, input1.read(buf, maxSize));
85 EXPECT_EQ(1u, input1.read(buf, maxSize));
87 EXPECT_EQ(0u, input1.read(buf, maxSize));
91 EXPECT_EQ(2u, input2.read(buf, maxSize));
93 EXPECT_EQ(1u, input2.read(buf, maxSize));
95 EXPECT_EQ(0u, input2.read(buf, maxSize));
99 EXPECT_EQ(3u, input3.read(buf, maxSize));
101 EXPECT_EQ(0u, input3.read(bu
[all...]
/external/smack/src/com/kenai/jbosh/
H A DGZIPCodec.java89 int read;
92 read = gzIn.read(buffer);
93 if (read > 0) {
94 byteOut.write(buffer, 0, read);
96 } while (read >= 0);
H A DStaticBody.java79 * @param inStream stream to read message XML from
89 int read;
91 read = inStream.read(buffer);
92 if (read > 0) {
93 byteOut.write(buffer, 0, read);
95 } while (read >= 0);
98 "Could not read body data", iox));
H A DZLIBCodec.java89 int read;
92 read = inflaterIn.read(buffer);
93 if (read > 0) {
94 byteOut.write(buffer, 0, read);
96 } while (read >= 0);
/external/chromium_org/mojo/apps/js/bindings/
H A Dcore_unittests.js39 var read = core.readMessage(
42 expect(read.result).toBe(core.RESULT_OK);
43 expect(read.buffer.byteLength).toBe(42);
44 expect(read.handles.length).toBe(0);
46 var memory = new Uint8Array(read.buffer);
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
H A DCipherInputStreamTest.java61 if ((byte) cis.read() != data[i]) {
66 if (cis.read() != -1) {
72 * read() method testing. Tests that method returns the correct value
81 if ((res = (byte) cis.read()) != data[i]) {
82 fail("read() returned the incorrect value. " + "Expected: "
86 if (cis.read() != -1) {
87 fail("read() should return -1 at the end of the stream.");
92 * read(byte[] b) method testing. Tests that method returns the correct
105 int got = cis.read(result); // the number of got bytes
109 fail("read(byt
[all...]
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DInflaterInputStreamTest.java71 while ((result = inflatIP.read()) != -1) {
90 inflatIP.read(byteArray, 0, 5);// only suppose to read in 5 bytes
107 while ((result = inflatIP.read()) != -1) {
167 * @tests java.util.zip.InflaterInputStream#read()
180 while ((result = inflatIP.read()) != -1) {
194 * @tests java.util.zip.InflaterInputStream#read(byte [], int, int)
204 result = inflatIP.read(null, 0, 1);
210 assertEquals(0, inflatIP.read(b, 0, 0));
213 result = inflatIP.read(
[all...]
/external/apache-http/src/org/apache/http/impl/io/
H A DChunkedInputStream.java50 * transfer coding. After the stream is read to the end, it provides access
54 * gets called. Instead, it will read until the "end" of its chunking on
56 * requests, while not requiring the client to remember to read the entire
110 * <p> Trailer headers are read automcatically at the end of the stream and
117 public int read() throws IOException { method in class:ChunkedInputStream
119 throw new IOException("Attempted read from closed stream.");
131 return in.read();
142 * @see java.io.InputStream#read(byte[], int, int)
145 public int read (byte[] b, int off, int len) throws IOException { method in class:ChunkedInputStream
148 throw new IOException("Attempted read fro
174 public int read (byte[] b) throws IOException { method in class:ChunkedInputStream
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Ddirectory_zipper_test.py38 self.assertEqual('one.txt contents', top_zip.read('top/one.txt'))
39 self.assertEqual('three.txt contents', top_zip.read('top/two/three.txt'))
40 self.assertEqual('four.txt contents', top_zip.read('top/two/four.txt'))
46 self.assertEqual('three.txt contents', two_zip.read('two/three.txt'))
47 self.assertEqual('four.txt contents', two_zip.read('two/four.txt'))
/external/chromium_org/chrome/common/
H A Dpartial_circular_buffer.cc70 uint32 read = 0; local
80 read += to_read;
83 // We've read all the beginning part, set the position to the middle part.
88 if (read >= buffer_size) {
89 DCHECK_EQ(read, buffer_size);
90 return read;
92 if (read >= to_eow) {
93 DCHECK_EQ(read, to_eow);
95 return read;
102 uint32 remaining_buffer_size = buffer_size - read;
[all...]

Completed in 1121 milliseconds

1234567891011>>