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

1234567891011

/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
H A DPeekableInputStream.java24 * this stream can call peek() to see the next available byte in the stream and a subsequent read
37 public int read() throws IOException { method in class:PeekableInputStream
39 return mIn.read();
48 mPeekedByte = read();
55 public int read(byte[] b, int offset, int length) throws IOException { method in class:PeekableInputStream
57 return mIn.read(b, offset, length);
61 int r = mIn.read(b, offset + 1, length - 1);
71 public int read(byte[] b) throws IOException { method in class:PeekableInputStream
72 return read(b, 0, b.length);
H A DFixedLengthInputStream.java22 * A filtering InputStream that stops allowing reads after the given length has been read. This is
23 * used to allow a client to read directly from an underlying protocol stream without reading past
24 * where the protocol handler intended the client to read.
42 public int read() throws IOException { method in class:FixedLengthInputStream
45 return mIn.read();
52 public int read(byte[] b, int offset, int length) throws IOException { method in class:FixedLengthInputStream
54 int d = mIn.read(b, offset, Math.min(mLength - mCount, length));
67 public int read(byte[] b) throws IOException { method in class:FixedLengthInputStream
68 return read(b, 0, b.length);
/packages/apps/Email/provider_src/com/android/email/
H A DPeekableInputStream.java25 * and a subsequent read will still return the peeked byte.
37 public int read() throws IOException { method in class:PeekableInputStream
39 return mIn.read();
48 mPeekedByte = read();
55 public int read(byte[] b, int offset, int length) throws IOException { method in class:PeekableInputStream
57 return mIn.read(b, offset, length);
61 int r = mIn.read(b, offset + 1, length - 1);
71 public int read(byte[] b) throws IOException { method in class:PeekableInputStream
72 return read(b, 0, b.length);
H A DFixedLengthInputStream.java23 * A filtering InputStream that stops allowing reads after the given length has been read. This
24 * is used to allow a client to read directly from an underlying protocol stream without reading
25 * past where the protocol handler intended the client to read.
43 public int read() throws IOException { method in class:FixedLengthInputStream
46 return mIn.read();
53 public int read(byte[] b, int offset, int length) throws IOException { method in class:FixedLengthInputStream
55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length));
68 public int read(byte[] b) throws IOException { method in class:FixedLengthInputStream
69 return read(b, 0, b.length);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DAutoCloseInputStream.java32 * releasing resources once the last byte has been read) do not do that.
52 * This method is automatically called by the read methods when the end
72 * @throws IOException if the stream could not be read or closed
74 public int read() throws IOException { method in class:AutoCloseInputStream
75 int n = in.read();
88 * @return number of bytes read, or -1 if no more bytes are available
89 * @throws IOException if the stream could not be read or closed
91 public int read(byte[] b) throws IOException { method in class:AutoCloseInputStream
92 int n = in.read(b);
106 * @param len maximum number of bytes to read
110 public int read(byte[] b, int off, int len) throws IOException { method in class:AutoCloseInputStream
[all...]
H A DProxyInputStream.java30 * methods being called, such as read(byte[]) to read(byte[], int, int).
48 * Invokes the delegate's <code>read()</code> method.
49 * @return the byte read or -1 if the end of stream
52 public int read() throws IOException { method in class:ProxyInputStream
53 return in.read();
57 * Invokes the delegate's <code>read(byte[])</code> method.
58 * @param bts the buffer to read the bytes into
59 * @return the number of bytes read or -1 if the end of stream
62 public int read(byt method in class:ProxyInputStream
74 public int read(byte[] bts, int st, int end) throws IOException { method in class:ProxyInputStream
[all...]
H A DProxyReader.java30 * methods being called, such as read(char[]) to read(char[], int, int).
48 * Invokes the delegate's <code>read()</code> method.
49 * @return the character read or -1 if the end of stream
52 public int read() throws IOException { method in class:ProxyReader
53 return in.read();
57 * Invokes the delegate's <code>read(char[])</code> method.
58 * @param chr the buffer to read the characters into
59 * @return the number of characters read or -1 if the end of stream
62 public int read(cha method in class:ProxyReader
74 public int read(char[] chr, int st, int end) throws IOException { method in class:ProxyReader
[all...]
H A DTeeInputStream.java24 * InputStream proxy that transparently writes a copy of all bytes read
40 * The output stream that will receive a copy of all bytes read from the
53 * and copies all read bytes to the given {@link OutputStream}. The given
57 * @param branch output stream that will receive a copy of all bytes read
65 * and copies all read bytes to the given {@link OutputStream}. The given
70 * @param branch output stream that will receive a copy of all bytes read
103 * @throws IOException if the stream could not be read (or written)
105 public int read() throws IOException { method in class:TeeInputStream
106 int ch = super.read();
114 * Reads bytes from the proxied input stream and writes the read byte
123 public int read(byte[] bts, int st, int end) throws IOException { method in class:TeeInputStream
139 public int read(byte[] bts) throws IOException { method in class:TeeInputStream
[all...]
H A DClosedInputStream.java22 * Closed input stream. This stream returns -1 to all attempts to read
44 public int read() { method in class:ClosedInputStream
H A DCountingInputStream.java27 * read as expected.
49 * number read.
51 * @param b the buffer into which the data is read, not null
52 * @return the total number of bytes read into the buffer, -1 if end of stream
54 * @see java.io.InputStream#read(byte[])
56 public int read(byte[] b) throws IOException { method in class:CountingInputStream
57 int found = super.read(b);
64 * keeping count of the number read.
66 * @param b the buffer into which the data is read, not null
68 * @param len the maximum number of bytes to read
73 public int read(byte[] b, int off, int len) throws IOException { method in class:CountingInputStream
87 public int read() throws IOException { method in class:CountingInputStream
[all...]
H A DDemuxInputStream.java66 * @return the byte read from stream
70 public int read() method in class:DemuxInputStream
76 return input.read();
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DRootInputStream.java44 * @param in the stream to read from.
52 * (the number of <code>\r\n</code> read so far plus 1).
62 * call to {@link #read()}, {@link #read(byte[]) or
63 * {@link #read(byte[], int, int)} will return
71 * @see java.io.InputStream#read()
73 public int read() throws IOException { method in class:RootInputStream
78 int b = is.read();
88 * @see java.io.InputStream#read(byte[], int, int)
90 public int read(byt method in class:RootInputStream
108 public int read(byte[] b) throws IOException { method in class:RootInputStream
[all...]
H A DMimeBoundaryInputStream.java28 * After the stream ends (i.e. read() returns -1) {@link #hasMoreParts()}
64 * before any bytes have been read.
66 int b = read();
109 while (read() != -1) {
114 * @see java.io.InputStream#read()
116 public int read() throws IOException { method in class:MimeBoundaryInputStream
128 int b1 = s.read();
129 int b2 = s.read();
150 int b = s.read();
165 int prev = s.read();
[all...]
H A DCloseShieldInputStream.java48 * @see java.io.InputStream#read()
50 public int read() throws IOException { method in class:CloseShieldInputStream
52 return is.read();
105 * @see java.io.FilterInputStream#read(byte[])
107 public int read(byte b[]) throws IOException { method in class:CloseShieldInputStream
109 return is.read(b);
113 * @see java.io.FilterInputStream#read(byte[], int, int)
115 public int read(byte b[], int off, int len) throws IOException { method in class:CloseShieldInputStream
117 return is.read(b, off, len);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DPartialInputStream.java39 public int read() throws IOException { method in class:PartialInputStream
41 return super.read();
46 public int read(byte b[]) throws IOException { method in class:PartialInputStream
47 return read(b, 0, b.length);
50 public int read(byte b[], int off, int len) throws IOException { method in class:PartialInputStream
52 return super.read(b, off, len); //To change body of overridden methods use File | Settings | File Templates.
H A DPositionInputStream.java44 public int read() throws IOException { method in class:PositionInputStream
45 int b = inputStream.read();
75 public int read(byte b[]) throws IOException { method in class:PositionInputStream
76 final int c = inputStream.read(b);
81 public int read(byte b[], int off, int len) throws IOException { method in class:PositionInputStream
82 final int c = inputStream.read(b, off, len);
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DFakeInputStream.java33 public int read() { method in class:FakeInputStream
44 public int read(byte[] buffer, int offset, int length) { method in class:FakeInputStream
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DParcelables.java46 Parcel read = Parcel.obtain();
52 read.unmarshall(data, 0, data.length);
53 read.setDataPosition(0);
54 restored = read.readParcelable(p.getClass().getClassLoader());
57 read.recycle();
/packages/apps/Camera2/src/com/android/camera/exif/
H A DByteBufferInputStream.java31 public int read() { method in class:ByteBufferInputStream
39 public int read(byte[] bytes, int off, int len) { method in class:ByteBufferInputStream
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java31 public int read() { method in class:ByteBufferInputStream
39 public int read(byte[] bytes, int off, int len) { method in class:ByteBufferInputStream
/packages/apps/Messaging/src/com/android/messaging/util/exif/
H A DByteBufferInputStream.java31 public int read() { method in class:ByteBufferInputStream
39 public int read(byte[] bytes, int off, int len) { method in class:ByteBufferInputStream
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
H A DImapMemoryLiteral.java37 int read = in.read(mData, pos, mData.length - pos);
38 if (read < 0) {
41 pos += read;
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DDurable.java25 public void read(DataInputStream in) throws IOException; method in interface:Durable
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DLoggingInputStream.java54 * Collect chars as read, and log them when EOL reached.
57 public int read() throws IOException { method in class:LoggingInputStream
58 int oneByte = super.read();
64 * Collect chars as read, and log them when EOL reached.
67 public int read(byte[] b, int offset, int length) throws IOException { method in class:LoggingInputStream
68 int bytesRead = super.read(b, offset, length);
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapMemoryLiteral.java40 int read = in.read(mData, pos, mData.length - pos);
41 if (read < 0) {
44 pos += read;

Completed in 389 milliseconds

1234567891011