Java edu.stanford.nlp.io IOUtils fields, constructors, methods, implement or subclass

Example usage for Java edu.stanford.nlp.io IOUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for edu.stanford.nlp.io IOUtils.

The text is from its open source code.

Method

voidcloseIgnoringExceptions(Closeable c)
Provides an implementation of closing a file for use in a finally block so you can correctly close a file without even more exception handling stuff.
PrintWriterencodedOutputStreamPrintWriter(OutputStream stream, String encoding, boolean autoFlush)
Create a Reader with an explicit encoding around an InputStream.
BufferedReadergetBufferedFileReader(String filename)
PrintWritergetPrintWriter(File textFile)
PrintWritergetPrintWriter(String filename)
BufferedReaderreaderFromStdin(String encoding)
Open a BufferedReader on stdin.
BufferedReaderreaderFromString(String textFileOrUrl, String encoding)
Open a BufferedReader to a file or URL specified by a String name.
BufferedReaderreaderFromString(String textFileOrUrl)
Open a BufferedReader to a file, class path entry or URL specified by a String name.
ObjectInputStreamreadStreamFromString(String filenameOrUrl)
Returns an ObjectInputStream reading from any of a URL, a CLASSPATH resource, or a file.
StringslurpFile(File file)
Returns all the text in the given File as a single String.
StringslurpFile(String filename)
Returns all the text in the given file
StringslurpFileNoExceptions(File file)
Returns all the text in the given file with the given encoding.
StringslurpFileNoExceptions(String filename)
Returns all the text in the given file with the given encoding.
StringslurpInputStream(InputStream input, String encoding)
Read the contents of an input stream, decoding it according to the given character encoding.