Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
jm::ZipEntry Class Reference

Entry for a ZIP file. More...

Inheritance diagram for jm::ZipEntry:
jm::Object

Public Member Functions

 ZipEntry (const String &name)
 Constructor for the ZipEntry class.
 
const Stringname () const
 Returns the name of the entry.
 
void setUncompressedSize (uint32 size)
 Set the size of the uncompressed entry.
 
uint32 uncompressedSize () const
 Returns the size of the uncompressed entry.
 
bool isDirectory () const
 Returns true, if the entry is a directory. An entry is recognized as a directory, if the last character of the name is '/'.
 
- Public Member Functions inherited from jm::Object
 Object () noexcept
 Constructor.
 
virtual ~Object () noexcept
 Destructor.
 
void release () noexcept
 Decreases the reference counter and releases the object immediately when the reference counter becomes 0.
 
Objectretain () noexcept
 Increases the reference counter of this object by 1.
 
Objectautorelease () noexcept
 Same function as release(), but releases the object with a delay if the reference counter is 0. AutoreleasePool::drain() must be called in the to release the object.
 
int32 referenceCount () const noexcept
 Returns the value of the reference counter.
 
virtual bool equals (const Object *other) const
 Comparison of objects.
 
virtual String displayName () const
 Returns the display name of the object intended to present to a user.
 
virtual void printDiffInfo (DiffOperation operation, Object *other) const
 Output method for outputting the diff results for the diff algorithm.
 
void setHighBit (bool status) noexcept
 
bool highBit () const noexcept
 

Friends

class ZipFile
 
class ZipOutputFile
 

Detailed Description

Entry for a ZIP file.

Constructor & Destructor Documentation

◆ ZipEntry()

jm::ZipEntry::ZipEntry ( const String name)
explicit

Constructor for the ZipEntry class.

Parameters
nameThe name of the entry.

Member Function Documentation

◆ isDirectory()

bool jm::ZipEntry::isDirectory ( ) const

Returns true, if the entry is a directory. An entry is recognized as a directory, if the last character of the name is '/'.

◆ name()

const String & jm::ZipEntry::name ( ) const

Returns the name of the entry.

◆ setUncompressedSize()

void jm::ZipEntry::setUncompressedSize ( uint32  size)

Set the size of the uncompressed entry.

Parameters
sizeThe size of the uncompressed entry in bytes.

◆ uncompressedSize()

uint32 jm::ZipEntry::uncompressedSize ( ) const

Returns the size of the uncompressed entry.

Friends And Related Symbol Documentation

◆ ZipFile

friend class ZipFile
friend

◆ ZipOutputFile

friend class ZipOutputFile
friend