org.ogre4j
Class ZipArchive

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

public class ZipArchive
extends NativeObject
implements IZipArchive


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ZipArchive(InstancePointer p)
          This constructor is public for internal useage only!
protected ZipArchive(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ZipArchive(java.lang.String name, java.lang.String archType)
           
  ZipArchive(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

ZipArchive

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


ZipArchive

protected ZipArchive(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.


ZipArchive

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ZipArchive

public ZipArchive(java.lang.String name,
                  java.lang.String archType)
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

isCaseSensitive

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

load

public void load()
Description copied from interface: IArchive
Loads the archive.

Specified by:
load in interface IArchive
Specified by:
load in interface IZipArchive

unload

public void unload()
Description copied from interface: IArchive
Unloads the archive.

Specified by:
unload in interface IArchive
Specified by:
unload in interface IZipArchive

open

public void open(IDataStreamPtr returnValue,
                 java.lang.String filename)
Description copied from interface: IArchive
Open a stream on a given file.

Specified by:
open in interface IArchive
Specified by:
open in interface IZipArchive

list

public void list(IStringVectorPtr returnValue,
                 boolean recursive,
                 boolean dirs)
Description copied from interface: IArchive
List all file names in the archive.

Specified by:
list in interface IArchive
Specified by:
list in interface IZipArchive

listFileInfo

public void listFileInfo(IFileInfoListPtr returnValue,
                         boolean recursive,
                         boolean dirs)
Description copied from interface: IArchive
List all files in the archive with accompanying information.

Specified by:
listFileInfo in interface IArchive
Specified by:
listFileInfo in interface IZipArchive

find

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

Specified by:
find in interface IArchive
Specified by:
find in interface IZipArchive

findFileInfo

public void findFileInfo(IFileInfoListPtr returnValue,
                         java.lang.String pattern,
                         boolean recursive,
                         boolean dirs)
Description copied from interface: IArchive
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
Specified by:
findFileInfo in interface IZipArchive

exists

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

Specified by:
exists in interface IArchive
Specified by:
exists in interface IZipArchive

getModifiedTime

public long getModifiedTime(java.lang.String filename)
Description copied from interface: IArchive
Retrieve the modification time of a given file

Specified by:
getModifiedTime in interface IArchive
Specified by:
getModifiedTime in interface IZipArchive

getName

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

getType

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


Copyright © 2007 netAllied GmbH. All Rights Reserved.