📄 chunktype.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: ChunkType.java
package jxl.biff.drawing;
import java.util.Arrays;
class ChunkType
{
private byte id[];
private String name;
private static ChunkType chunkTypes[] = new ChunkType[0];
public static ChunkType IHDR = new ChunkType(73, 72, 68, 82, "IHDR");
public static ChunkType IEND = new ChunkType(73, 69, 78, 68, "IEND");
public static ChunkType PHYS = new ChunkType(112, 72, 89, 115, "pHYs");
public static ChunkType UNKNOWN = new ChunkType(255, 255, 255, 255, "UNKNOWN");
private ChunkType(int d1, int d2, int d3, int d4, String n)
{
id = (new byte[] {
(byte)d1, (byte)d2, (byte)d3, (byte)d4
});
name = n;
ChunkType ct[] = new ChunkType[chunkTypes.length + 1];
System.arraycopy(chunkTypes, 0, ct, 0, chunkTypes.length);
ct[chunkTypes.length] = this;
chunkTypes = ct;
}
public String getName()
{
return name;
}
public static ChunkType getChunkType(byte d1, byte d2, byte d3, byte d4)
{
byte cmp[] = {
d1, d2, d3, d4
};
boolean found = false;
ChunkType chunk = UNKNOWN;
for(int i = 0; i < chunkTypes.length && !found; i++)
if(Arrays.equals(chunkTypes[i].id, cmp))
{
chunk = chunkTypes[i];
found = true;
}
return chunk;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -