public static URI createURI(URI archiveFile,ZipEntry entry){
  String entryName=entry.getName();
  List<String> segmentList=Strings.split(entryName,'/');
  String[] segments=segmentList.toArray(new String[segmentList.size()]);
  URI result=URI.createHierarchicalURI("archive",archiveFile.toString() + "!",null,segments,null,null);
  return result;
}

public static URI createURI ( URI archiveFile , ZipEntry entry ) { String entryName = entry . getName ( ) ; List < String > segmentList = Strings . split ( entryName , '/' ) ; String [ ] segments = segmentList . toArray ( new String [ segmentList . size ( ) ] ) ; URI result = URI . createHierarchicalURI ( "archive" , archiveFile . toString ( ) + "!" , null , segments , null , null ) ; return result ; }
creates a new archive uri that points to the given archive entry .
