本文整理了Java中marytts.util.io.FileUtils.getReaderAsString()
方法的一些代码示例,展示了FileUtils.getReaderAsString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.getReaderAsString()
方法的具体详情如下:
包路径:marytts.util.io.FileUtils
类名称:FileUtils
方法名:getReaderAsString
暂无
代码示例来源:origin: marytts/marytts
/**
* @deprecated use {@link org.apache.commons.io.IOUtils#toString(InputStream, String)} instead
* @param inputStream
* inputStream
* @param encoding
* encoding
* @throws IOException
* IOException
* @return getReaderAsString
*/
@Deprecated
public static String getStreamAsString(InputStream inputStream, String encoding) throws IOException {
return getReaderAsString(new InputStreamReader(inputStream, encoding));
}
代码示例来源:origin: marytts/marytts
/**
* @deprecated use {@link org.apache.commons.io.IOUtils#toString(InputStream, String)} instead
* @param inputStream
* inputStream
* @param encoding
* encoding
* @throws IOException
* IOException
* @return getReaderAsString
*/
@Deprecated
public static String getStreamAsString(InputStream inputStream, String encoding) throws IOException {
return getReaderAsString(new InputStreamReader(inputStream, encoding));
}
代码示例来源:origin: marytts/marytts
/**
* Read the input data from a Reader.
*
* @param inputReader
* inputReader
* @throws Exception
* Exception
*/
public void readInputData(Reader inputReader) throws Exception {
String inputText = FileUtils.getReaderAsString(inputReader);
setInputData(inputText);
}
代码示例来源:origin: marytts/marytts
/**
* Read the input data from a Reader.
*
* @param inputReader
* inputReader
* @throws Exception
* Exception
*/
public void readInputData(Reader inputReader) throws Exception {
String inputText = FileUtils.getReaderAsString(inputReader);
setInputData(inputText);
}
代码示例来源:origin: marytts/marytts
/**
* Read data from reader <code>r</code> in the appropriate way as determined by our <code>type</code>. Only XML and Text data
* can be read from a reader, audio data cannot.
*
* @param from
* from
* @throws ParserConfigurationException
* ParserConfigurationException
* @throws SAXException
* SAXException
* @throws IOException
* IOException
*/
public void readFrom(Reader from) throws ParserConfigurationException, SAXException, IOException {
String inputData = FileUtils.getReaderAsString(from);
setData(inputData);
}
代码示例来源:origin: marytts/marytts
/**
* Read data from reader <code>r</code> in the appropriate way as determined by our <code>type</code>. Only XML and Text data
* can be read from a reader, audio data cannot.
*
* @param from
* from
* @throws ParserConfigurationException
* ParserConfigurationException
* @throws SAXException
* SAXException
* @throws IOException
* IOException
*/
public void readFrom(Reader from) throws ParserConfigurationException, SAXException, IOException {
String inputData = FileUtils.getReaderAsString(from);
setData(inputData);
}
代码示例来源:origin: de.dfki.mary/marytts-runtime
/**
* Read the input data from a Reader.
*
* @param inputReader
* inputReader
* @throws Exception
* Exception
*/
public void readInputData(Reader inputReader) throws Exception {
String inputText = FileUtils.getReaderAsString(inputReader);
setInputData(inputText);
}
代码示例来源:origin: de.dfki.mary/marytts-runtime
/**
* Read data from reader <code>r</code> in the appropriate way as determined by our <code>type</code>. Only XML and Text data
* can be read from a reader, audio data cannot.
*
* @param from
* from
* @throws ParserConfigurationException
* ParserConfigurationException
* @throws SAXException
* SAXException
* @throws IOException
* IOException
*/
public void readFrom(Reader from) throws ParserConfigurationException, SAXException, IOException {
String inputData = FileUtils.getReaderAsString(from);
setData(inputData);
}
内容来源于网络,如有侵权,请联系作者删除!