com.bumptech.glide.load.data
Class ExifOrientationStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ExifOrientationStream(InputStream in, int orientation)
           
 
Method Summary
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] buffer, int byteOffset, int byteCount)
           
 void reset()
           
 long skip(long byteCount)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExifOrientationStream

public ExifOrientationStream(InputStream in,
                             int orientation)
Method Detail

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