public class ContentTextureKey extends TextureKey
Filename is required to acquire proper type asset loader according to extension.
Constructor and Description |
---|
ContentTextureKey(java.lang.String name,
byte[] content) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends AssetCache> |
getCacheType() |
byte[] |
getContent() |
void |
read(JmeImporter im) |
java.lang.String |
toString() |
void |
write(JmeExporter ex) |
equals, getAnisotropy, getProcessorType, getTextureTypeHint, hashCode, isFlipY, isGenerateMips, setAnisotropy, setFlipY, setGenerateMips, setTextureTypeHint
clone, getExtension, getExtension, getFolder, getFolder, getName, reducePath
public ContentTextureKey(java.lang.String name, byte[] content)
public byte[] getContent()
public java.lang.Class<? extends AssetCache> getCacheType()
getCacheType
in class TextureKey
SimpleAssetCache
is returned.public java.lang.String toString()
toString
in class TextureKey
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class TextureKey
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class TextureKey
java.io.IOException