类 ImageUtil
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.image.ImageUtil
-
public class ImageUtil extends Object
Create: 2019-01-25, Added in version 0.5.2- 作者:
- 32798
-
-
构造器概要
构造器 构造器 说明 ImageUtil()
-
方法概要
修饰符和类型 方法 说明 static ImageInputStreamgetIIS(InputStream stream)static ImageReadergetReader(ImageInputStream iis)static BufferedImagegetTextureAvatar(ImageReader reader, Object input)static BufferedImagegetTextureAvatar(ImageInputStream iis)static BufferedImagegetTextureHead(ImageInputStream iis)已过时。static booleanisImage(URL url)static booleanisImage(URL url, int timeout)static booleanisImage(ImageInputStream iis)static FileInputStreamopenFile(File file)static InputStreamopenHttp(URL url)static InputStreamopenHttp(URL url, int timeout)
-
-
-
方法详细资料
-
isImage
public static boolean isImage(URL url, int timeout) throws IOException
- 抛出:
IOException
-
isImage
public static boolean isImage(URL url) throws IOException
- 抛出:
IOException
-
isImage
public static boolean isImage(ImageInputStream iis)
-
openHttp
public static InputStream openHttp(URL url, int timeout) throws IOException
- 抛出:
IOException
-
openHttp
public static InputStream openHttp(URL url) throws IOException
- 抛出:
IOException
-
openFile
public static FileInputStream openFile(File file)
-
getIIS
public static ImageInputStream getIIS(InputStream stream) throws IOException
- 抛出:
IOException
-
getReader
public static ImageReader getReader(ImageInputStream iis)
-
getTextureHead
@Deprecated public static BufferedImage getTextureHead(ImageInputStream iis) throws IOException
已过时。- 抛出:
IOException
-
getTextureAvatar
public static BufferedImage getTextureAvatar(ImageInputStream iis) throws IOException
- 抛出:
IOException
-
getTextureAvatar
public static BufferedImage getTextureAvatar(ImageReader reader, Object input) throws IOException
- 参数:
reader- The readerinput- The input Stream, Can be null- 抛出:
IOException
-
-