/** * @see InputStream#markSupported */ public boolean markSupported() { return in.markSupported(); } }
/** * @see InputStream#markSupported */ public boolean markSupported() { return in.markSupported(); } }
/** * @see InputStream#markSupported */ public boolean markSupported() { return in.markSupported(); } }
/** * Tests if this input stream supports the mark and reset methods. Whether or not * <code>mark</code> and <code>reset</code> are supported is an invariant property of the * provided input stream instance. * * @return <code>true</code> iff the provided input stream instance supports the * <code>mark</code> and <code>reset</code> methods. **/ public boolean markSupported() { return in.markSupported(); } }
@Override public boolean markSupported() { return stringReader.markSupported(); }
@Override public boolean markSupported() { return stringReader.markSupported(); }
@Override public boolean markSupported() { return stringReader.markSupported(); }
public boolean markSupported() { return freemarkerProcessedReader.markSupported(); }
public boolean markSupported() { return in.markSupported(); }
private Object stripHTML(String value, String column) { StringBuilder out = new StringBuilder(); StringReader strReader = new StringReader(value); try { HTMLStripCharFilter html = new HTMLStripCharFilter(strReader.markSupported() ? strReader : new BufferedReader(strReader)); char[] cbuf = new char[1024 * 10]; while (true) { int count = html.read(cbuf); if (count == -1) break; // end of stream mark is -1 if (count > 0) out.append(cbuf, 0, count); } html.close(); } catch (IOException e) { throw new DataImportHandlerException(DataImportHandlerException.SEVERE, "Failed stripping HTML for column: " + column, e); } return out.toString(); }