public InputStreamReader getFileStream(String filename, String encoding)
			throws NoSuchPathException, UnmarshalException{
		try {
			return new InputStreamReader(new FileInputStream(filename), encoding);
		} catch (FileNotFoundException e) {
			throw new NoSuchPathException(e);
		} catch (UnsupportedEncodingException e){
			throw new UnmarshalException(e);
		}
	}
public InputStreamReader getFileStream ( String filename , String encoding ) throws NoSuchPathException , UnmarshalException { try { return new InputStreamReader ( new FileInputStream ( filename ) , encoding ) ; } catch ( FileNotFoundException e ) { throw new NoSuchPathException ( e ) ; } catch ( UnsupportedEncodingException e ) { throw new UnmarshalException ( e ) ; } }
将文件读出为输出流

@param filename 需要读取的文件名称
@param encoding 文件编码

@return 文件内容输出流

@throws NoSuchPathException 无法找到对应的文件或者路径
@throws UnmarshalException 解组失败(通常由于编码问题引起)