类 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 ImageInputStream
getIIS(InputStream stream)
static ImageReader
getReader(ImageInputStream iis)
static BufferedImage
getTextureAvatar(ImageReader reader, Object input)
static BufferedImage
getTextureAvatar(ImageInputStream iis)
static BufferedImage
getTextureHead(ImageInputStream iis)
已过时。static boolean
isImage(URL url)
static boolean
isImage(URL url, int timeout)
static boolean
isImage(ImageInputStream iis)
static FileInputStream
openFile(File file)
static InputStream
openHttp(URL url)
static InputStream
openHttp(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
-
-