Searched refs:read (Results 1 - 25 of 1617) sorted by relevance

1234567891011>>

/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
H A DSFTPInputStream.java19 * Offset (in bytes) in the file to read
29 * an array of bytes. An attempt is made to read as many as
30 * <code>len</code> bytes, but a smaller number may be read, possibly
31 * zero. The number of bytes actually read is returned as an integer.
33 * @see SFTPv3Client#read(SFTPv3FileHandle,long,byte[],int,int)
36 public int read(byte[] buffer, int offset, int len) throws IOException method in class:SFTPInputStream
38 int read = handle.getClient().read(handle, readOffset, buffer, offset, len);
39 if(read > 0) {
40 readOffset += read;
60 public int read() throws IOException { method in class:SFTPInputStream
[all...]
H A DSCPInputStream.java20 * Bytes remaining to be read from the stream
39 int c = session.getStdout().read();
74 public int read() throws IOException method in class:SCPInputStream
81 int read = super.read();
82 if (read < 0)
87 remaining -= read;
89 return read;
93 public int read(byte b[], int off, int len) throws IOException method in class:SCPInputStream
106 int read
[all...]
H A DPacketListener.java11 void read(String packet); method in interface:PacketListener
/external/guava/guava-tests/test/com/google/common/io/
H A DLimitInputStreamTest.java36 int read = lin.read();
37 assertEquals(big[0], read);
39 read = lin.read();
40 assertEquals(big[1], read);
42 read = lin.read();
43 assertEquals(-1, read);
47 read
124 public int read() throws IOException { method in class:LimitInputStreamTest.UnmarkableInputStream
[all...]
H A DCountingInputStreamTest.java38 assertEquals(0, counter.read());
43 assertEquals(10, counter.read(new byte[10]));
48 assertEquals(3, counter.read(new byte[10], 1, 3));
64 assertEquals(-1, counter.read());
69 assertEquals(20, counter.read(new byte[30]));
71 assertEquals(-1, counter.read(new byte[30]));
77 assertEquals(10, counter.read(new byte[10]));
80 counter.read();
110 public int read() throws IOException { method in class:CountingInputStreamTest.UnmarkableInputStream
/external/jmonkeyengine/engine/src/core/com/jme3/util/
H A DLittleEndien.java37 * <code>LittleEndien</code> is a class to read littleendien stored data
39 * assume they come from a LittleEndien input stream. Currently used to read .ms3d and .3ds files.
50 * @param in The input stream to read from.
57 public int read() throws IOException { method in class:LittleEndien
58 return in.read();
62 public int read(byte[] buf) throws IOException { method in class:LittleEndien
63 return in.read(buf);
67 public int read(byte[] buf, int off, int len) throws IOException { method in class:LittleEndien
68 return in.read(buf, off, len);
72 return (in.read()
[all...]
/external/smack/src/org/jivesoftware/smack/util/
H A DReaderListener.java35 * Notification that the Reader has read a new string.
37 * @param str the read String
39 public abstract void read(String str); method in interface:ReaderListener
H A DObservableReader.java41 public int read(char[] cbuf, int off, int len) throws IOException { method in class:ObservableReader
42 int count = wrappedReader.read(cbuf, off, len);
45 // Notify that a new string has been read
52 readerListeners[i].read(str);
62 public int read() throws IOException { method in class:ObservableReader
63 return wrappedReader.read();
66 public int read(char cbuf[]) throws IOException { method in class:ObservableReader
67 return wrappedReader.read(cbuf);
92 * new strings are read.
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/
H A DShortArrayCodeInput.java26 /** source array to read from */
46 public int read() throws EOFException { method in class:ShortArrayCodeInput
58 int short0 = read();
59 int short1 = read();
66 long short0 = read();
67 long short1 = read();
68 long short2 = read();
69 long short3 = read();
/external/proguard/src/proguard/io/
H A DDataEntryReader.java28 * determines what to do with the read data, if anything.
37 public void read(DataEntry dataEntry) throws IOException; method in interface:DataEntryReader
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/
H A DTeeInputStream.java19 public int read(byte[] buf) method in class:TeeInputStream
22 return read(buf, 0, buf.length);
25 public int read(byte[] buf, int off, int len) method in class:TeeInputStream
28 int i = input.read(buf, off, len);
38 public int read() method in class:TeeInputStream
41 int i = input.read();
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
H A DUnknownLengthHttpInputStream.java33 @Override public int read(byte[] buffer, int offset, int count) throws IOException { method in class:UnknownLengthHttpInputStream
39 int read = in.read(buffer, offset, count);
40 if (read == -1) {
45 cacheWrite(buffer, offset, read);
46 return read;
/external/apache-http/src/org/apache/http/io/
H A DSessionInputBuffer.java49 int read(byte[] b, int off, int len) throws IOException; method in interface:SessionInputBuffer
51 int read(byte[] b) throws IOException; method in interface:SessionInputBuffer
53 int read() throws IOException; method in interface:SessionInputBuffer
/external/apache-http/src/org/apache/http/impl/io/
H A DIdentityInputStream.java74 public int read() throws IOException { method in class:IdentityInputStream
78 return this.in.read();
82 public int read(final byte[] b, int off, int len) throws IOException { method in class:IdentityInputStream
86 return this.in.read(b, off, len);
H A DContentLengthInputStream.java42 * gets called. Instead, it will read until the "end" of its chunking on
44 * requests, while not requiring the client to remember to read the entire
75 * The maximum number of bytes that can be read from the stream. Subsequent
76 * read operations will return -1.
95 * @param contentLength The maximum number of bytes that can be read from
96 * the stream. Subsequent read operations will return -1.
121 while (read(buffer) >= 0) {
125 // to read after closed!
136 * @see java.io.InputStream#read()
138 public int read() throw method in class:ContentLengthInputStream
162 public int read (byte[] b, int off, int len) throws java.io.IOException { method in class:ContentLengthInputStream
187 public int read(byte[] b) throws IOException { method in class:ContentLengthInputStream
[all...]
/external/libusb_aah/libusb/os/
H A Dpoll_posix.h5 #define usbi_read read
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DIndefiniteLengthInputStream.java22 _b1 = in.read();
23 _b2 = in.read();
51 public int read(byte[] b, int off, int len) method in class:IndefiniteLengthInputStream
57 return super.read(b, off, len);
65 int numRead = _in.read(b, off + 2, len - 2);
76 _b1 = _in.read();
77 _b2 = _in.read();
88 public int read() method in class:IndefiniteLengthInputStream
96 int b = _in.read();
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DLineNumberInputStreamTest.java60 lnis.read();
61 lnis.read();
63 assertEquals("stream returned incorrect line number after read", 1,
79 assertEquals("Failed to mark", '0', lnis.read());
83 * @tests java.io.LineNumberInputStream#read()
86 assertEquals("Failed to read correct byte", '0', lnis.read());
87 assertEquals("Failed to read correct byte on dos text", '0', lnis2
88 .read());
89 assertTrue("Failed to read correc
[all...]
H A DBufferedReaderTest.java94 br.read();
113 br.read(buf, 0, 500);
121 br.read(buf, 0, 1000);
136 in.read(new char[14], 0, 14);
138 assertTrue("Wrong chars", in.read() == (char) 6
139 && in.read() == (char) 7);
146 assertTrue("Wrong chars 2", in.read() == (char) 6
147 && in.read() == (char) 7);
152 int result = br.read(carray);
157 assertEquals("Assert 3:", '3', br.read());
[all...]
H A DStringBufferInputStreamTest.java45 * @tests java.io.StringBufferInputStream#read()
48 // Test for method int java.io.StringBufferInputStream.read()
51 sbis.read(buf, 0, 5);
56 * @tests java.io.StringBufferInputStream#read(byte[], int, int)
59 // Test for method int java.io.StringBufferInputStream.read(byte [],
61 assertEquals("Read returned incorrect char", 'H', sbis.read());
72 assertEquals("Failed to reset", 'H', sbis.read());
82 assertEquals("Skip positioned at incorrect char", 'W', sbis.read());
/external/guava/guava/src/com/google/common/base/
H A DTicker.java43 public abstract long read(); method in class:Ticker
56 public long read() {
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
H A DInput.java35 * bytes read from this instance.
60 * @return the byte value that was read
67 * @return the short value that was read, as an int
74 * @return the unsigned int value that was read
81 * @return the long value that was read
91 * @return the integer value that was read
100 * @return the integer value that was read
118 * @param bytes non-null; the buffer to read the data into
121 * @param length &gt;= 0; number of bytes to read
123 public void read(byt method in interface:Input
131 public void read(byte[] bytes); method in interface:Input
[all...]
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DDeflaterInputStreamTest.java42 assertEquals(120, dis.read());
44 assertEquals(22, dis.read(buf, 0, 1024));
46 assertEquals(-1, dis.read());
72 dis.read(buf, 0, 1024);
105 * @tests DeflaterInputStream#read()
110 assertEquals(120, dis.read());
112 assertEquals(156, dis.read());
114 assertEquals(243, dis.read());
118 dis.read();
126 * @tests DeflaterInputStream#read(byt
[all...]
/external/guava/guava/src/com/google/common/io/
H A DMultiInputStream.java78 @Override public int read() throws IOException { method in class:MultiInputStream
82 int result = in.read();
85 return read();
90 @Override public int read(byte[] b, int off, int len) throws IOException { method in class:MultiInputStream
94 int result = in.read(b, off, len);
97 return read(b, off, len);
110 if (read() == -1) {
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
H A DSourceChannelTest.java64 * @tests java.nio.channels.Pipe.SourceChannel#read(ByteBuffer)
67 // if anything can read, read method will not block
69 int count = source.read(ByteBuffer.allocate(10));
74 * @tests java.nio.channels.Pipe.SourceChannel#read(ByteBuffer)
79 source.read(nullBuf);
87 * @tests java.nio.channels.Pipe.SourceChannel#read(ByteBuffer)
93 long count = source.read(readBuf);
95 // readBuf is full, read 0 byte expected
96 count = source.read(readBu
[all...]

Completed in 547 milliseconds

1234567891011>>