Documentation of 'jhplot.io.PReader' Java class.
PReader
jhplot.io

Class PReader

  • All Implemented Interfaces:
    java.io.Serializable


    public class PReader
    extends java.lang.Object
    implements java.io.Serializable
    Some generic methods to read data and to return BufferedReader.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      PReader() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.io.BufferedReader read(java.io.File sfile)
      Read from a file.
      static java.io.BufferedReader read(java.lang.String sfile)
      Read data from a given location.
      static java.io.BufferedReader read(java.net.URL url)
      Read data from URL.
      static java.io.BufferedReader readGZip(java.io.File sfile)
      Read data from a gzipped file (GNU gzip/gunzip commands in linux)
      static java.io.BufferedReader readGZip(java.lang.String sfile)
      Read data from either URL or file
      static java.io.BufferedReader readGZip(java.net.URL url)
      Read data from URL.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PReader

        public PReader()
    • Method Detail

      • readGZip

        public static java.io.BufferedReader readGZip(java.io.File sfile)
        Read data from a gzipped file (GNU gzip/gunzip commands in linux)
        Parameters:
        sfile - File name with input (extension .gz)
        Returns:
        zero if success
      • read

        public static java.io.BufferedReader read(java.net.URL url)
        Read data from URL.
        Parameters:
        url - URL location of input file
      • read

        public static java.io.BufferedReader read(java.io.File sfile)
        Read from a file.
        Parameters:
        sfile - input file
        Returns:
        BufferedReader
      • read

        public static java.io.BufferedReader read(java.lang.String sfile)
        Read data from a given location. It can read URL if the string starts from http: or ftp:, otherwise a file on the file system is assumed.
        Parameters:
        sfile - File name or URL with input
        Returns:
        zero if success
      • readGZip

        public static java.io.BufferedReader readGZip(java.net.URL url)
        Read data from URL.
        Parameters:
        url - URL location of input file
      • readGZip

        public static java.io.BufferedReader readGZip(java.lang.String sfile)
        Read data from either URL or file
        Parameters:
        sfile - can be either URL or a file location
        Returns:
        BufferedReader

DMelt 3.0 © DataMelt by jWork.ORG