src/main/java/ca/phon/plugins/praat/TextGridScanner.java
/**
	 * Get a set of all tiers defined in the text grid folder
	 */
Get a set of all tiers defined in the text grid folder
Get a set of all tiers defined in the text grid folder
public Set<String> collectTierNames() {
		final Set<String> retVal = new HashSet<String>();
		for(File f:textGridFolder.listFiles(tgFilter)) {
			TextGrid tg = null;
			try {
				tg = Daata.readFromFile(TextGrid.class, MelderFile.fromPath(f.getAbsolutePath()));
				for(long i = 0; i < tg.numberOfTiers(); i++) {
					final Function tgTier = tg.tier(i);
					retVal.add(tgTier.getName().toString());
				}
			} catch (PraatException e) {
				LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e);
			}
		}
		return retVal;
	}
public Set < String > collectTierNames ( ) { final Set < String > retVal = new HashSet < String > ( ) ; for ( File f : textGridFolder . listFiles ( tgFilter ) ) { TextGrid tg = null ; try { tg = Daata . readFromFile ( TextGrid . class , MelderFile . fromPath ( f . getAbsolutePath ( ) ) ) ; for ( long i = 0 ; i < tg . numberOfTiers ( ) ; i ++ ) { final Function tgTier = tg . tier ( i ) ; retVal . add ( tgTier . getName ( ) . toString ( ) ) ; } } catch ( PraatException e ) { LOGGER . log ( Level . SEVERE , e . getLocalizedMessage ( ) , e ) ; } } return retVal ; }
Get a set of all tiers defined in the text grid folder
Get a set of all tiers defined in the text grid folder