/** * @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)); }
/** * @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)); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }