Package codes.thischwa.jii
Interface IInfoProvider
-
- All Known Subinterfaces:
IDimensionProvider
,IResolutionProvider
- All Known Implementing Classes:
CommonsImageInfoWrapper
,ImageInfoWrapper
,ImageIOWrapper
,ImageMagickWrapper
,iTextImageWrapper
,SimpleImageInfoWrapper
public interface IInfoProvider
Interface for all beans, which provides properties of an image file. It is the root interface for other more specific interfaces.- Author:
- Thilo Schwarz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageType
getImageType()
Obtain theImageType
of the current image file.ImageType[]
getSupportedTypes()
Return allImageType
s supported by the implemented class.void
set(File file)
Specify the imageFile
to be examine.void
set(InputStream in)
Specify theInputStream
of image file to be examine.
-
-
-
Method Detail
-
getSupportedTypes
ImageType[] getSupportedTypes()
Return allImageType
s supported by the implemented class.- Returns:
- A set of
ImageType
s.
-
getImageType
ImageType getImageType()
Obtain theImageType
of the current image file.- Returns:
- The
ImageType
of the current image file.
-
set
void set(File file) throws FileNotFoundException, ReadException
Specify the imageFile
to be examine.- Parameters:
file
- The imageFile
to be examine.- Throws:
FileNotFoundException
- If the file to be examine couldn't find.ReadException
- If the required reading operation fails.
-
set
void set(InputStream in) throws ReadException, UnsupportedOperationException
Specify theInputStream
of image file to be examine.- Parameters:
in
- TheInputStream
of the image file to be examine.- Throws:
ReadException
- If the required reading operation fails.UnsupportedOperationException
- If the implemented class doesn't provide support forInputStream
s.
-
-