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:
- Closeable
public class ExifOrientationStream
- extends FilterInputStream
Adds an exif segment with an orientation attribute to a wrapped InputStream
containing
image data.
This class assumes that the wrapped stream contains an image format that can contain
exif information and performs no verification.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExifOrientationStream
public ExifOrientationStream(InputStream in,
int orientation)
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class FilterInputStream
mark
public void mark(int readlimit)
- Overrides:
mark
in class FilterInputStream
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buffer,
int byteOffset,
int byteCount)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
skip
public long skip(long byteCount)
throws IOException
- Overrides:
skip
in class FilterInputStream
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class FilterInputStream
- Throws:
IOException