public List<StockholmStructure> parse(String filename, int max) throws IOException, ParserException {
		InputStreamProvider isp = new InputStreamProvider();
		InputStream inStream = isp.getInputStream(filename);
		return parse(inStream, max);
	}
public List < StockholmStructure > parse ( String filename , int max ) throws IOException , ParserException { InputStreamProvider isp = new InputStreamProvider ( ) ; InputStream inStream = isp . getInputStream ( filename ) ; return parse ( inStream , max ) ; }
Parses a Stockholm file and returns a {@link StockholmStructure} object with its content.<br>
This function doesn't close the file after doing its assigned job; to allow for further calls of
{@link #parseNext(int)}.

@see #parseNext(int)

@param filename
file from where to read the content. see {@link InputStreamProvider} for more details.
@param max
maximum number of files to read, {@link #INFINITY} for all.
@return a vector of {@link StockholmStructure} containing parsed structures.
@throws IOException
when an exception occurred while opening/reading/closing the file.
@throws ParserException
if unexpected format is encountered