Package net.sf.okapi.common.skeleton
Class ZipSkeleton
- java.lang.Object
-
- net.sf.okapi.common.skeleton.GenericSkeleton
-
- net.sf.okapi.common.skeleton.ZipSkeleton
-
public class ZipSkeleton extends GenericSkeleton
Extension of theGenericSkeletonskeleton implementation that allow ZipFile and ZipEntry objects to be passed along with skeleton parts.
-
-
Constructor Summary
Constructors Constructor Description ZipSkeleton(ZipFile original, ZipEntry entry)ZipSkeleton(GenericSkeleton skel, ZipFile original, ZipEntry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipSkeletonclone()Clones this GenericSkeleton object.ZipEntrygetEntry()StringgetModifiedContents()ZipFilegetOriginal()voidsetModifiedContents(String modifiedContents)-
Methods inherited from class net.sf.okapi.common.skeleton.GenericSkeleton
add, add, add, add, addContentPlaceholder, addContentPlaceholder, addReference, addValuePlaceholder, append, append, appendToFirstPart, attachParent, changeSelfReferents, copyFields, flushPart, getFirstPart, getLastPart, getParent, getParts, isEmpty, isEmpty, setParent, setParts, toString
-
-
-
-
Constructor Detail
-
ZipSkeleton
public ZipSkeleton(GenericSkeleton skel, ZipFile original, ZipEntry entry)
-
-
Method Detail
-
getOriginal
public ZipFile getOriginal()
-
getEntry
public ZipEntry getEntry()
-
getModifiedContents
public String getModifiedContents()
-
setModifiedContents
public void setModifiedContents(String modifiedContents)
-
clone
public ZipSkeleton clone()
Description copied from class:GenericSkeletonClones this GenericSkeleton object. Shallow copy is provided as the cloned skeleton can be coupled with its original via the parent field. After the cloned skeleton is attached to a parent resource which implementation invokes ISkeleton.setParent(), the copy becomes deep as the parent fields are updated with new values thus decoupling the original and the clone.- Specified by:
clonein interfaceISkeleton- Overrides:
clonein classGenericSkeleton- Returns:
- a new GenericSkeleton object that is a shallow copy of this object.
-
-