org.ogre4j
Class Archive

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Archive
All Implemented Interfaces:
IAllocatedObject<IGeneralAllocPolicy>, IArchive, IGeneralAllocatedObject, INativeObject

public class Archive
extends NativeObject
implements IArchive


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Archive(InstancePointer p)
          This constructor is public for internal useage only!
protected Archive(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Archive(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 boolean exists(java.lang.String filename)
          Find out if the named file exists (note: fully qualified filename required)
 void finalize()
           
 void find(IStringVectorPtr returnValue, java.lang.String pattern, boolean recursive, boolean dirs)
          Find all file or directory names matching a given pattern in this archive.
 void findFileInfo(IFileInfoListPtr returnValue, java.lang.String pattern, boolean recursive, boolean dirs)
          Find all files or directories matching a given pattern in this archive and get some detailed information about them.
 long getModifiedTime(java.lang.String filename)
          Retrieve the modification time of a given file
 java.lang.String getName()
           
 java.lang.String getType()
           
 boolean isCaseSensitive()
           
 void list(IStringVectorPtr returnValue, boolean recursive, boolean dirs)
          List all file names in the archive.
 void listFileInfo(IFileInfoListPtr returnValue, boolean recursive, boolean dirs)
          List all files in the archive with accompanying information.
 void load()
          Loads the archive.
 void open(IDataStreamPtr returnValue, java.lang.String filename)
          Open a stream on a given file.
 void unload()
          Unloads the archive.
 
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

Archive

public Archive(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Archive

protected Archive(InstancePointer p,
                  boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Archive

public Archive(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getName

public java.lang.String getName()
Specified by:
getName in interface IArchive

isCaseSensitive

public boolean isCaseSensitive()
Specified by:
isCaseSensitive in interface IArchive

load

public void load()
Loads the archive.

Specified by:
load in interface IArchive

unload

public void unload()
Unloads the archive.

Specified by:
unload in interface IArchive

open

public void open(IDataStreamPtr returnValue,
                 java.lang.String filename)
Open a stream on a given file.

Specified by:
open in interface IArchive

list

public void list(IStringVectorPtr returnValue,
                 boolean recursive,
                 boolean dirs)
List all file names in the archive.

Specified by:
list in interface IArchive

listFileInfo

public void listFileInfo(IFileInfoListPtr returnValue,
                         boolean recursive,
                         boolean dirs)
List all files in the archive with accompanying information.

Specified by:
listFileInfo in interface IArchive

find

public void find(IStringVectorPtr returnValue,
                 java.lang.String pattern,
                 boolean recursive,
                 boolean dirs)
Find all file or directory names matching a given pattern in this archive.

Specified by:
find in interface IArchive

exists

public boolean exists(java.lang.String filename)
Find out if the named file exists (note: fully qualified filename required)

Specified by:
exists in interface IArchive

getModifiedTime

public long getModifiedTime(java.lang.String filename)
Retrieve the modification time of a given file

Specified by:
getModifiedTime in interface IArchive

findFileInfo

public void findFileInfo(IFileInfoListPtr returnValue,
                         java.lang.String pattern,
                         boolean recursive,
                         boolean dirs)
Find all files or directories matching a given pattern in this archive and get some detailed information about them.

Specified by:
findFileInfo in interface IArchive

getType

public java.lang.String getType()
Specified by:
getType in interface IArchive


Copyright © 2007 netAllied GmbH. All Rights Reserved.