|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 |
java.lang.Objectjava.lang.Enum<PictureSaver.PictureType>
net.sourceforge.wopa.picture.PictureSaver.PictureType
public static enum PictureSaver.PictureType
根据图片类型指定其后缀名
枚举常量摘要 | |
---|---|
BMP
|
|
GIF
|
|
JPEG
|
|
PNG
|
字段摘要 | |
---|---|
private java.lang.String |
content_type
|
private java.lang.String |
surfix
|
方法摘要 | |
---|---|
static PictureSaver.PictureType |
getByContentType(java.lang.String content_type)
根据content_type获取图片类型 |
java.lang.String |
getContentType()
获取文件类型 |
java.lang.String |
getSurfix()
获取后缀名 |
static PictureSaver.PictureType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。 |
static PictureSaver.PictureType[] |
values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。 |
从类 java.lang.Enum 继承的方法 |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
从类 java.lang.Object 继承的方法 |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
枚举常量详细信息 |
---|
public static final PictureSaver.PictureType JPEG
public static final PictureSaver.PictureType BMP
public static final PictureSaver.PictureType GIF
public static final PictureSaver.PictureType PNG
字段详细信息 |
---|
private java.lang.String content_type
private java.lang.String surfix
方法详细信息 |
---|
public static final PictureSaver.PictureType[] values()
for(PictureSaver.PictureType c :PictureSaver.PictureType.values()) System.out.println(c);
public static PictureSaver.PictureType valueOf(java.lang.String name)
指定要返回的枚举常量的名称。
-
如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentExceptionpublic java.lang.String getSurfix()
public java.lang.String getContentType()
public static PictureSaver.PictureType getByContentType(java.lang.String content_type)
content_type
-
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 |