Searched defs:read (Results 1 - 25 of 42) sorted by relevance

12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifReader.java31 public ExifData read(InputStream inputStream) throws ExifInvalidFormatException, method in class:ExifReader
54 parser.read(buf);
61 parser.read(buf);
66 parser.read(buf);
/packages/apps/Email/src/org/apache/commons/io/input/
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 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 DDemuxInputStream.java66 * @return the byte read from stream
70 public int read() method in class:DemuxInputStream
76 return input.read();
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 DCharSequenceReader.java23 * {@link Reader} implementation that can read from String, StringBuffer,
78 public int read() { method in class:CharSequenceReader
91 * @param length The maximum number of characters to read
92 * @return The number of characters read or -1 if there are
95 public int read(char[] array, int offset, int length) { method in class:CharSequenceReader
108 int c = read();
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 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...]
/packages/apps/Email/src/com/android/email/
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);
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);
/packages/apps/Email/src/org/apache/james/mime4j/
H A DEOLConvertingInputStream.java51 * @param in the <code>InputStream</code> to read from.
60 * @param in the <code>InputStream</code> to read from.
81 * @see java.io.InputStream#read()
83 public int read() throws IOException { method in class:EOLConvertingInputStream
84 int b = in.read();
91 int c = in.read();
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 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);
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...]
/packages/apps/Email/tests/src/com/android/email/activity/
H A DAccountSelectorAdapterTest.java181 private void addMessage(Mailbox m, boolean starred, boolean read) { argument
183 starred, read);
H A DMailboxFragmentAdapterTest.java105 private static Message createMessage(Context c, Mailbox b, boolean starred, boolean read, argument
108 "1", b.mAccountKey, b.mId, true, false, c, starred, read);
/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DMockParserStream.java40 public int read() throws IOException { method in class:MockParserStream
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DExif.java36 while (read(is, buf, 2) && (buf[0] & 0xFF) == 0xFF) {
54 if (!read(is, buf, 2)) {
66 if (!read(is, buf, 6)) return 0;
87 if (!read(is, jpeg, length)) {
154 private static boolean read(InputStream is, byte[] buf, int length) { method in class:Exif
156 return is.read(buf, 0, length) == length;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DLoggingInputStream.java55 * Collect chars as read, and log them when EOL reached.
58 public int read() throws IOException { method in class:LoggingInputStream
59 int oneByte = super.read();
65 * Collect chars as read, and log them when EOL reached.
68 public int read(byte[] b, int offset, int length) throws IOException { method in class:LoggingInputStream
69 int bytesRead = super.read(b, offset, length);
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
H A DBase64InputStream.java58 public int read() throws IOException { method in class:Base64InputStream
82 switch (i = s.read()) {
H A DQuotedPrintableInputStream.java58 public int read() throws IOException { method in class:QuotedPrintableInputStream
87 int i = stream.read();
/packages/apps/Email/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.
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
H A DBase64InputStream.java24 * Without the included changes, the final bytes of the input stream will be read here and thrown
28 * the remainder of the stream untouched (to be read by the Parser that created the
69 public int read() throws IOException { method in class:Base64InputStream
93 switch (i = s.read()) {
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
H A DEmailContentSetupUtils.java88 // Default starred, read, (backword compatibility)
96 boolean addBody, boolean saveIt, Context context, boolean starred, boolean read) {
102 message.mFlagRead = read;
95 setupMessage(String name, long accountId, long mailboxId, boolean addBody, boolean saveIt, Context context, boolean starred, boolean read) argument

Completed in 202 milliseconds

12