|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ImageCodec
public class ImageCodec
| Nested Class Summary | |
|---|---|
static class |
ImageCodec.ImageData
|
| 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 | |
|---|---|
|
ImageCodec(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ImageCodec(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ImageCodec(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 |
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 ImageCodec(InstancePointer p)
protected ImageCodec(InstancePointer p,
boolean remote)
public ImageCodec(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| 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 NativeObjectpublic java.lang.String getDataType()
ICodec
getDataType in interface ICodecgetDataType in interface IImageCodec
public void code(IDataStreamPtr returnValue,
IMemoryDataStreamPtr input,
ICodec.ICodecDataPtr pData)
code in interface ICodec
public void codeToFile(IMemoryDataStreamPtr input,
java.lang.String outFileName,
ICodec.ICodecDataPtr pData)
codeToFile in interface ICodec
public void decode(ICodec.IDecodeResult returnValue,
IDataStreamPtr input)
decode in interface ICodecpublic java.lang.String getType()
getType in interface ICodec
public boolean magicNumberMatch(java.lang.String magicNumberPtr,
int maxbytes)
magicNumberMatch in interface ICodec
public java.lang.String magicNumberToFileExt(java.lang.String magicNumberPtr,
int maxbytes)
magicNumberToFileExt 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 | |||||||||