Package com.bumptech.glide.load.data
Class ExifOrientationStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.bumptech.glide.load.data.ExifOrientationStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class ExifOrientationStream extends java.io.FilterInputStreamAdds an exif segment with an orientation attribute to a wrappedInputStreamcontaining image data.This class assumes that the wrapped stream contains an image format that can contain exif information and performs no verification.
-
-
Constructor Summary
Constructors Constructor Description ExifOrientationStream(java.io.InputStream in, int orientation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmark(int readLimit)booleanmarkSupported()intread()intread(byte[] buffer, int byteOffset, int byteCount)voidreset()longskip(long byteCount)
-
-
-
Method Detail
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.FilterInputStream
-
mark
public void mark(int readLimit)
- Overrides:
markin classjava.io.FilterInputStream
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(@NonNull byte[] buffer, int byteOffset, int byteCount) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
skip
public long skip(long byteCount) throws java.io.IOException- Overrides:
skipin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
-