Codota Logo
IOUtils.readLines
Code IndexAdd Codota to your IDE (free)

How to use
readLines
method
in
org.drools.repository.utils.IOUtils

Best Java code snippets using org.drools.repository.utils.IOUtils.readLines (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.drools/guvnor-repository

/**
 * Get the contents of an <code>InputStream</code> as a list of Strings,
 * one entry per line, using the default character encoding of the platform.
 * <p>
 * This method buffers the input internally, so there is no need to use a
 * <code>BufferedInputStream</code>.
 *
 * @param input  the <code>InputStream</code> to read from, not null
 * @return the list of Strings, never null
 * @throws NullPointerException if the input is null
 * @throws IOException if an I/O error occurs
 * @since Commons IO 1.1
 */
public static List readLines(InputStream input) throws IOException {
  InputStreamReader reader = new InputStreamReader(input);
  return readLines(reader);
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * Get the contents of an <code>InputStream</code> as a list of Strings,
 * one entry per line, using the specified character encoding.
 * <p>
 * Character encoding names can be found at
 * <a href="http://www.iana.org/assignments/character-sets">IANA</a>.
 * <p>
 * This method buffers the input internally, so there is no need to use a
 * <code>BufferedInputStream</code>.
 *
 * @param input  the <code>InputStream</code> to read from, not null
 * @param encoding  the encoding to use, null means platform default
 * @return the list of Strings, never null
 * @throws NullPointerException if the input is null
 * @throws IOException if an I/O error occurs
 * @since Commons IO 1.1
 */
public static List readLines(InputStream input, String encoding) throws IOException {
  if (encoding == null) {
    return readLines(input);
  } else {
    InputStreamReader reader = new InputStreamReader(input, encoding);
    return readLines(reader);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * Get the contents of an <code>InputStream</code> as a list of Strings,
 * one entry per line, using the default character encoding of the platform.
 * <p>
 * This method buffers the input internally, so there is no need to use a
 * <code>BufferedInputStream</code>.
 *
 * @param input  the <code>InputStream</code> to read from, not null
 * @return the list of Strings, never null
 * @throws NullPointerException if the input is null
 * @throws IOException if an I/O error occurs
 * @since Commons IO 1.1
 */
public static List readLines(InputStream input) throws IOException {
  InputStreamReader reader = new InputStreamReader(input);
  return readLines(reader);
}
origin: org.drools/guvnor-repository

/**
 * Get the contents of an <code>InputStream</code> as a list of Strings,
 * one entry per line, using the specified character encoding.
 * <p>
 * Character encoding names can be found at
 * <a href="http://www.iana.org/assignments/character-sets">IANA</a>.
 * <p>
 * This method buffers the input internally, so there is no need to use a
 * <code>BufferedInputStream</code>.
 *
 * @param input  the <code>InputStream</code> to read from, not null
 * @param encoding  the encoding to use, null means platform default
 * @return the list of Strings, never null
 * @throws NullPointerException if the input is null
 * @throws IOException if an I/O error occurs
 * @since Commons IO 1.1
 */
public static List readLines(InputStream input, String encoding) throws IOException {
  if (encoding == null) {
    return readLines(input);
  } else {
    InputStreamReader reader = new InputStreamReader(input, encoding);
    return readLines(reader);
  }
}
org.drools.repository.utilsIOUtilsreadLines

Javadoc

Get the contents of an InputStream as a list of Strings, one entry per line, using the default character encoding of the platform.

This method buffers the input internally, so there is no need to use a BufferedInputStream.

Popular methods of IOUtils

  • copy
    Copy chars from a Reader to a Writer. This method buffers the input internally, so there is no need
  • copyLarge
    Copy chars from a large (over 2GB) Reader to a Writer. This method buffers the input internally, so
  • toByteArray
    Get the contents of a String as a byte[] using the default character encoding of the platform. This
  • toString
    Get the contents of a byte[] as a String using the specified character encoding. Character encoding
  • write
    Writes chars from a char[] to a Writer using the default character encoding of the platform.
  • writeLines
    Writes the toString() value of each item in a collection to a Writer line by line, using the specifi

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now