📄 icctextdescriptiontype.java
字号:
/***************************************************************************** * * $Id: ICCTextDescriptionType.java,v 1.1.1.1 2002/08/02 09:51:48 grosbois Exp $ * * Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650 * $Date $ *****************************************************************************/package icc.tags;import java.util.Vector;import icc .ICCProfile;/** * A text based ICC tag * * @version 1.0 * @author Bruce A. Kern */public class ICCTextDescriptionType extends ICCTag { /** Tag fields */ public final int type; /** Tag fields */ public final int reserved; /** Tag fields */ public final int size; /** Tag fields */ public final byte [] ascii; /** * Construct this tag from its constituant parts * @param signature tag id * @param data array of bytes * @param offset to data in the data array * @param length of data in the data array */ protected ICCTextDescriptionType (int signature, byte [] data, int offset, int length) { super (signature, data, offset, length); type = ICCProfile.getInt (data, offset); offset += ICCProfile.int_size; reserved = ICCProfile.getInt (data, offset); offset += ICCProfile.int_size; size = ICCProfile.getInt (data, offset); offset += ICCProfile.int_size; ascii = new byte [size-1]; System.arraycopy (data,offset,ascii,0,size-1); } /** Return the string rep of this tag. */ public String toString () { return "[" + super.toString() + " \"" + new String (ascii) + "\"]"; } /* end class ICCTextDescriptionType */ }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -