private void visitImage(CmsObject cms, File f) {

        f.length();
        String oName = f.getAbsolutePath().substring(CmsImageLoader.getImageRepositoryPath().length());
        oName = getVFSName(cms, oName);

        List files = (List)m_filePaths.get(oName);
        if (files == null) {
            files = new ArrayList();
            m_filePaths.put(oName, files);
        }
        files.add(f.getAbsolutePath());

        List variations = (List)m_variations.get(oName);
        if (variations == null) {
            variations = new ArrayList();
            m_variations.put(oName, variations);

        }
        oName += " (";
        oName += f.length() + " Bytes)";
        variations.add(oName);
    }
private void visitImage ( CmsObject cms , File f ) { f . length ( ) ; String oName = f . getAbsolutePath ( ) . substring ( CmsImageLoader . getImageRepositoryPath ( ) . length ( ) ) ; oName = getVFSName ( cms , oName ) ; List files = ( List ) m_filePaths . get ( oName ) ; if ( files == null ) { files = new ArrayList ( ) ; m_filePaths . put ( oName , files ) ; } files . add ( f . getAbsolutePath ( ) ) ; List variations = ( List ) m_variations . get ( oName ) ; if ( variations == null ) { variations = new ArrayList ( ) ; m_variations . put ( oName , variations ) ; } oName += " (" ; oName += f . length ( ) + " Bytes)" ; variations . add ( oName ) ; }
Visits a single image.<p>

@param cms CmsObject
@param f a File to be read out