public EmailContentItem( final String name, final EmailRepository repository, final EmailContentLocation parent ) { this.name = name; this.repository = repository; this.parent = parent; this.contentId = RepositoryUtilities.buildName( this, "/" ); this.newItem = true; }
/** * Returns the full pathname of the location. * * @return the full pathname. */ public Object getContentId() { return RepositoryUtilities.buildName( this, "/" ); }
/** * Returns the full pathname of the location. * * @return the full pathname. */ public Object getContentId() { return RepositoryUtilities.buildName( this, "/" ); }
public EmailContentLocation( final EmailRepository repository, final ContentLocation parent, final String name ) { this.repository = repository; this.parent = parent; this.name = name; this.entries = new HashMap(); this.contentId = RepositoryUtilities.buildName( this, "/" ) + '/'; }
public ZipContentLocation( final ZipRepository repository, final ContentLocation parent, final String name ) { if ( repository == null ) { throw new NullPointerException(); } if ( name == null ) { throw new NullPointerException(); } this.repository = repository; this.parent = parent; this.name = name; this.entries = new HashMap(); this.contentId = RepositoryUtilities.buildName( this, "/" ) + '/'; }
public ZipReadContentLocation( final ZipReadRepository repository, final ZipReadContentLocation parent, final String entryName ) { if ( repository == null ) { throw new NullPointerException(); } if ( entryName == null ) { throw new NullPointerException(); } this.repository = repository; this.parent = parent; this.entryName = entryName; this.entries = new HashMap(); this.name = RepositoryUtilities.buildName( this, "/" ) + '/'; }
public ZipContentLocation( final ZipRepository repository, final ZipContentLocation parent, final String entryName ) { if ( repository == null ) { throw new NullPointerException(); } if ( entryName == null ) { throw new NullPointerException(); } this.repository = repository; this.parent = parent; this.entryName = entryName; this.entries = new HashMap(); this.name = RepositoryUtilities.buildName( this, "/" ) + '/'; this.time = System.currentTimeMillis(); }
public ZipContentItem( final ZipRepository repository, final ZipContentLocation parent, final String name ) { if ( repository == null ) { throw new NullPointerException(); } if ( parent == null ) { throw new NullPointerException(); } if ( name == null ) { throw new NullPointerException(); } this.repository = repository; this.parent = parent; this.entryName = name; this.name = RepositoryUtilities.buildName( this, "/" ); this.time = System.currentTimeMillis(); this.comment = null; this.size = 0; this.rawData = EMPTY_BYTES; this.method = LibRepositoryBoot.ZIP_METHOD_DEFLATED; this.compression = Deflater.DEFAULT_COMPRESSION; }
public ZipContentItem( final String name, final ZipRepository repository, final ZipContentLocation parent ) { if ( name == null ) { throw new NullPointerException(); } if ( repository == null ) { throw new NullPointerException(); } if ( parent == null ) { throw new NullPointerException(); } this.time = System.currentTimeMillis(); this.name = name; this.repository = repository; this.parent = parent; this.contentId = RepositoryUtilities.buildName( this, "/" ); this.newItem = true; this.method = LibRepositoryBoot.ZIP_METHOD_DEFLATED; this.compression = Deflater.DEFAULT_COMPRESSION; }
public ZipReadContentLocation( ZipReadRepository repository, ZipReadContentLocation parent, ZipEntry zipEntry ) { if ( repository == null ) { throw new NullPointerException(); } if ( parent == null ) { throw new NullPointerException(); } if ( zipEntry == null ) { throw new NullPointerException(); } this.repository = repository; this.parent = parent; this.comment = zipEntry.getComment(); this.size = zipEntry.getSize(); this.time = zipEntry.getTime(); this.entries = new HashMap(); this.entryName = IOUtils.getInstance().getFileName( zipEntry.getName() ); this.name = RepositoryUtilities.buildName( this, "/" ) + '/'; }
public ZipContentLocation( ZipRepository repository, ZipContentLocation parent, ZipEntry zipEntry ) { if ( repository == null ) { throw new NullPointerException(); } if ( parent == null ) { throw new NullPointerException(); } if ( zipEntry == null ) { throw new NullPointerException(); } this.repository = repository; this.parent = parent; this.entryName = IOUtils.getInstance().getFileName( zipEntry.getName() ); this.comment = zipEntry.getComment(); this.size = zipEntry.getSize(); this.time = zipEntry.getTime(); this.entries = new HashMap(); this.name = RepositoryUtilities.buildName( this, "/" ) + '/'; }
this.repository = repository; this.comment = zipEntry.getComment(); this.name = RepositoryUtilities.buildName( this, "/" ); this.entryName = IOUtils.getInstance().getFileName( name ); this.size = zipEntry.getSize();
for ( int i = 0; i < contentEntities.length; i++ ) { final ContentEntity entity = contentEntities[ i ]; final String fullName = RepositoryUtilities.buildName( entity, "/" ); if ( entity instanceof ContentLocation ) { final ContentLocation childlocation = (ContentLocation) entity;