src/main/java/ca/phon/plugins/praat/TextGridManager.java
/**
	 * Load TextGrid from file
	 * 
	 * The returned {@link TextGrid} must be deleted
	 * using the {@link Thing#forget()} method when
	 * the object is no longer needed.
	 *
	 * @param file
	 * @return textgrid
	 * @throws IOException
	 */
Load TextGrid from file

The returned  TextGrid must be deleted
using the  Thing#forget() method when
the object is no longer needed.

@param file
@return textgrid
@throws IOException
Load TextGrid from file The returned TextGrid must be deleted using the Thing#forget () method when the object is no longer needed . @param file @return textgrid @throws IOException
public static TextGrid loadTextGrid(File tgFile)
		throws IOException {
		TextGrid retVal = null;
		try {
			retVal = Daata.readFromFile(TextGrid.class, MelderFile.fromPath(tgFile.getAbsolutePath()));
		} catch (PraatException e) {
			throw new IOException(e);
		}
		return retVal;
	}
public static TextGrid loadTextGrid ( File tgFile ) throws IOException { TextGrid retVal = null ; try { retVal = Daata . readFromFile ( TextGrid . class , MelderFile . fromPath ( tgFile . getAbsolutePath ( ) ) ) ; } catch ( PraatException e ) { throw new IOException ( e ) ; } return retVal ; }
Load TextGrid from file
Load TextGrid from file