|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.FreeImageCodec
public class FreeImageCodec
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ogre4j.IFreeImageCodec |
|---|
IFreeImageCodec.IRegisteredCodecList |
| Nested classes/interfaces inherited from interface org.ogre4j.IImageCodec |
|---|
IImageCodec.IImageData |
| Nested classes/interfaces inherited from interface org.ogre4j.ICodec |
|---|
ICodec.ICodecData, ICodec.ICodecDataPtr, ICodec.ICodecIterator, ICodec.ICodecList, ICodec.IDecodeResult |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
FreeImageCodec(InstancePointer p)
This constructor is public for internal useage only! |
protected |
FreeImageCodec(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
FreeImageCodec(java.lang.String type,
long fiType)
|
|
FreeImageCodec(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
code(IDataStreamPtr returnValue,
IMemoryDataStreamPtr input,
ICodec.ICodecDataPtr pData)
Codes the data in the input stream and saves the result in the output stream. |
void |
codeToFile(IMemoryDataStreamPtr input,
java.lang.String outFileName,
ICodec.ICodecDataPtr pData)
Codes the data in the input chunk and saves the result in the output filename provided. |
void |
decode(ICodec.IDecodeResult returnValue,
IDataStreamPtr input)
Codes the data from the input chunk into the output chunk. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
static ICodec |
getCodec(BytePointer magicNumberPtr,
int maxbytes)
Gets the codec that can handle the given 'magic' identifier. |
static ICodec |
getCodec(java.lang.String extension)
Gets the codec registered for the passed in file extension. |
static void |
getCodecIterator(ICodec.ICodecIterator returnValue)
Gets the iterator for the registered codecs. |
java.lang.String |
getDataType()
Returns the type of the data that supported by this codec as a String |
static void |
getExtensions(IStringVector returnValue)
Gets the file extension list for the registered codecs. |
java.lang.String |
getType()
Returns the type of the codec as a String |
boolean |
magicNumberMatch(java.lang.String magicNumberPtr,
int maxbytes)
Returns whether a magic number header matches this codec. |
java.lang.String |
magicNumberToFileExt(java.lang.String magicNumberPtr,
int maxbytes)
Maps a magic number header to a file extension, if this codec recognises it. |
static void |
registerCodec(ICodec pCodec)
Registers a new codec in the database. |
static void |
shutdown()
|
static void |
startup()
|
static void |
unRegisterCodec(ICodec pCodec)
Unregisters a codec from the database. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public FreeImageCodec(InstancePointer p)
protected FreeImageCodec(InstancePointer p,
boolean remote)
public FreeImageCodec(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public FreeImageCodec(java.lang.String type,
long fiType)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObject
public void code(IDataStreamPtr returnValue,
IMemoryDataStreamPtr input,
ICodec.ICodecDataPtr pData)
ICodec
code in interface ICodeccode in interface IFreeImageCodec
public void codeToFile(IMemoryDataStreamPtr input,
java.lang.String outFileName,
ICodec.ICodecDataPtr pData)
ICodec
codeToFile in interface ICodeccodeToFile in interface IFreeImageCodec
public void decode(ICodec.IDecodeResult returnValue,
IDataStreamPtr input)
ICodec
decode in interface ICodecdecode in interface IFreeImageCodecpublic java.lang.String getType()
ICodec
getType in interface ICodecgetType in interface IFreeImageCodec
public java.lang.String magicNumberToFileExt(java.lang.String magicNumberPtr,
int maxbytes)
ICodec
magicNumberToFileExt in interface ICodecmagicNumberToFileExt in interface IFreeImageCodecpublic static void startup()
public static void shutdown()
public java.lang.String getDataType()
ICodec
getDataType in interface ICodecgetDataType in interface IImageCodec
public boolean magicNumberMatch(java.lang.String magicNumberPtr,
int maxbytes)
magicNumberMatch in interface ICodecpublic static void registerCodec(ICodec pCodec)
public static void unRegisterCodec(ICodec pCodec)
public static void getCodecIterator(ICodec.ICodecIterator returnValue)
public static void getExtensions(IStringVector returnValue)
public static ICodec getCodec(java.lang.String extension)
public static ICodec getCodec(BytePointer magicNumberPtr,
int maxbytes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||