org.pentaho.reporting.libraries.repository.zip

Class ZipContentLocation

public class ZipContentLocation extends Object implements ContentLocation

=========================================================== LibRepository : a free Java content repository access layer =========================================================== Project Info: http://reporting.pentaho.org/librepository/ (C) Copyright 2006-2008, by Pentaho Corporation and Contributors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. [Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries.] ------------ ZipContentLocation.java ------------
Constructor Summary
ZipContentLocation(ZipRepository repository, ZipContentLocation parent, String entryName)
ZipContentLocation(ZipRepository repository, ZipContentLocation parent, ZipEntry zipEntry)
Method Summary
ContentItemcreateItem(String name)
ContentLocationcreateLocation(String name)
booleandelete()
booleanexists(String name)
ObjectgetAttribute(String domain, String key)
ObjectgetContentId()
ContentEntitygetEntry(String name)
StringgetName()
ContentLocationgetParent()
RepositorygetRepository()
ContentEntity[]listContents()
booleanremoveEntity(ContentEntity entity)
booleansetAttribute(String domain, String key, Object value)
voidupdateDirectoryEntry(String[] name, int index, ZipEntry zipEntry)
voidupdateEntry(String[] name, int index, ZipEntry zipEntry, byte[] data)

Constructor Detail

ZipContentLocation

public ZipContentLocation(ZipRepository repository, ZipContentLocation parent, String entryName)

ZipContentLocation

public ZipContentLocation(ZipRepository repository, ZipContentLocation parent, ZipEntry zipEntry)

Method Detail

createItem

public ContentItem createItem(String name)

createLocation

public ContentLocation createLocation(String name)

delete

public boolean delete()

exists

public boolean exists(String name)

getAttribute

public Object getAttribute(String domain, String key)

getContentId

public Object getContentId()

getEntry

public ContentEntity getEntry(String name)

getName

public String getName()

getParent

public ContentLocation getParent()

getRepository

public Repository getRepository()

listContents

public ContentEntity[] listContents()

removeEntity

public boolean removeEntity(ContentEntity entity)

setAttribute

public boolean setAttribute(String domain, String key, Object value)

updateDirectoryEntry

public void updateDirectoryEntry(String[] name, int index, ZipEntry zipEntry)

updateEntry

public void updateEntry(String[] name, int index, ZipEntry zipEntry, byte[] data)