jbackup/src/main/java/org/jbundle/jbackup/source/ZipSource.java
public SourceFile next()
	{
		if (this.isPend())
			return this.getPend();
		try	{
			ZipEntry entry = m_inZip.getNextEntry();
			if (entry == null)
				return null;		// EOF
			String strPath = entry.getName();
			String strFilename = strPath;
			if (strPath.lastIndexOf(gchSeparator) != -1)
				if (strPath.lastIndexOf(gchSeparator) + 1 < strPath.length())
					strFilename = strPath.substring(strPath.lastIndexOf(gchSeparator) + 1);
			long lStreamLength = entry.getSize();
			if (DEBUG)
				System.out.println("Name: " + entry.getName() + " size: " + entry.getSize());
			return new StreamSourceFile(null, m_inZip, strPath, strFilename, lStreamLength);		// Return the file
		} catch (IOException ex)	{
			ex.printStackTrace();
		}
		return null;	// pend(don) Don't do this!
	}
public SourceFile next()
	{
		if (this.isPend())
			return this.getPend();
		try	{
			ZipEntry entry = m_inZip.getNextEntry();
			if (entry == null)
				return null;		// EOF
			String strPath = entry.getName();
			String strFilename = strPath;
			if (strPath.lastIndexOf(gchSeparator) != -1)
				if (strPath.lastIndexOf(gchSeparator) + 1 < strPath.length())
					strFilename = strPath.substring(strPath.lastIndexOf(gchSeparator) + 1);
			long lStreamLength = entry.getSize();
			if (DEBUG)
				System.out.println("Name: " + entry.getName() + " size: " + entry.getSize());
			return new StreamSourceFile(null, m_inZip, strPath, strFilename, lStreamLength);		// Return the file
		} catch (IOException ex)	{
			ex.printStackTrace();
		}
		return null;	// pend(don) Don't do this!
	}
public SourceFile next ( ) { if ( this . isPend ( ) ) return this . getPend ( ) ; try { ZipEntry entry = m_inZip . getNextEntry ( ) ; if ( entry == null ) return null ; // EOF String strPath = entry . getName ( ) ; String strFilename = strPath ; if ( strPath . lastIndexOf ( gchSeparator ) != - 1 ) if ( strPath . lastIndexOf ( gchSeparator ) + 1 < strPath . length ( ) ) strFilename = strPath . substring ( strPath . lastIndexOf ( gchSeparator ) + 1 ) ; long lStreamLength = entry . getSize ( ) ; if ( DEBUG ) System . out . println ( "Name: " + entry . getName ( ) + " size: " + entry . getSize ( ) ) ; return new StreamSourceFile ( null , m_inZip , strPath , strFilename , lStreamLength ) ; // Return the file } catch ( IOException ex ) { ex . printStackTrace ( ) ; } return null ; // pend(don) Don't do this! }
Returns the next element in the interation.
(Returns a SourceFileObject).

@returns the next element in the interation.
@exception NoSuchElementException iteration has no more elements.
Returns the next element in the interation . ( Returns a SourceFileObject ) .