docs/javadoc/reference/com/facebook/imageformat/ImageFormatChecker.html
|
|
Summary: Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.imageformat.ImageFormatChecker |
Detects the format of an encoded image.
| Public Methods |
|---|
| ImageFormat |
| static ImageFormat |
| Tries to read up to MAX_HEADER_LENGTH bytes from InputStream is and use read bytes to determine type of the image contained in is. |
| static ImageFormat |
| Reads image header from a file indicated by provided filename and determines its format. |
| static ImageFormat |
| synchronized static ImageFormatChecker |
| Get the currently used instance of the image format checker |
| void |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
| IOException | |
Tries to read up to MAX_HEADER_LENGTH bytes from InputStream is and use read bytes to determine type of the image contained in is. If provided input stream does not support mark, then this method consumes data from is and it is not safe to read further bytes from is after this method returns. Otherwise, if mark is supported, it will be used to preserve original content of is.
| IOException | if exception happens during read |
Reads image header from a file indicated by provided filename and determines its format. This method does not throw IOException if one occurs. In this case, UNKNOWN will be returned.
Get the currently used instance of the image format checker
+Generated by Doclava. +