Java BufferedReader Create getBufferedReader(final InputStream inputstream)

Here you can find the source of getBufferedReader(final InputStream inputstream)

Description

Method getBufferedReader

License

Open Source License

Parameter

Parameter Description
inputstream a parameter

Exception

Parameter Description
IOException an exception

Return

TODO: Finish documentation

Declaration

public static BufferedReader getBufferedReader(final InputStream inputstream) throws IOException 

Method Source Code

//package com.java2s;
/*/*from  w  w w . j  ava2 s  .  co m*/
 * Copyright (c) 2003 Stephan D. Cote' - All rights reserved.
 * 
 * This program and the accompanying materials are made available under the 
 * terms of the MIT License which accompanies this distribution, and is 
 * available at http://creativecommons.org/licenses/MIT/
 *
 * Contributors:
 *   Stephan D. Cote 
 *      - Initial concept and implementation
 */

import java.io.BufferedReader;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Main {
    private static final String fileIOEncoding = "8859_1";

    /**
     * Method getBufferedReader
     *
     * @param inputstream
     *
     * @return TODO: Finish documentation
     *
     * @throws IOException
     */
    public static BufferedReader getBufferedReader(final InputStream inputstream) throws IOException {
        return new BufferedReader(new InputStreamReader(inputstream, fileIOEncoding));
    }
}

Related

  1. getBufferedReader(File file)
  2. getBufferedReader(File file)
  3. getBufferedReader(File file, String charset)
  4. getBufferedReader(File file, String encoding)
  5. getBufferedReader(final File file)
  6. getBufferedReader(InputStream inputStream)
  7. getBufferedReader(InputStream inputStream, String charsetName)
  8. getBufferedReader(InputStream stream, String charset)
  9. getBufferedReader(Reader r)