Java File to Reader newReader(String value)

Here you can find the source of newReader(String value)

Description

new Reader

License

Open Source License

Declaration

public static BufferedReader newReader(String value) 

Method Source Code


//package com.java2s;
/*//  ww w  . j av a2  s  .  c  o  m
 * Copyright (c) 2003-2009 Mark Logic Corporation. All rights reserved.
 *
 * This program and the accompanying materials are made available 
 * under the terms of the Eclipse Public License v1.0 which 
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Mark Logic, Inc.
 */

import java.io.BufferedReader;

import java.io.StringReader;

public class Main {
    public static BufferedReader newReader(String value) {
        return (new BufferedReader(new StringReader(value)));
    }
}

Related

  1. newReader(File file)
  2. newReader(File file, String charset)
  3. newReader(File file, String encoding)
  4. newReader(File pathname)
  5. openReader(File file)
  6. openReader(final String file, String charset)
  7. openReader(String dir, String filename, String encoding)
  8. openReader(String file)