gpdraw
Class FileInput

java.lang.Object
  extended by gpdraw.FileInput

public class FileInput
extends java.lang.Object

File input processing frontend for the Scanner class

Since:
JDK1.5
Version:
1.11, 08/12/06
Author:
George Peck
See Also:
Scanner

Constructor Summary
FileInput()
           
FileInput(java.io.InputStream source)
           
FileInput(java.io.InputStream source, java.lang.String charsetName)
           
FileInput(java.lang.String source)
           
FileInput(java.lang.String source, java.lang.String charsetName)
           
 
Method Summary
 void close()
           
 java.util.regex.Pattern delimiter()
           
 java.lang.String findInLine(java.util.regex.Pattern pattern)
           
 java.lang.String findInLine(java.lang.String pattern)
           
 java.lang.String findWithinHorizon(java.util.regex.Pattern pattern, int horizon)
           
 java.lang.String findWithinHorizon(java.lang.String pattern, int horizon)
           
 boolean hasNext()
           
 boolean hasNext(java.util.regex.Pattern pattern)
           
 boolean hasNext(java.lang.String pattern)
           
 boolean hasNextBigDecimal()
           
 boolean hasNextBigInteger()
           
 boolean hasNextBigInteger(int radix)
           
 boolean hasNextBoolean()
           
 boolean hasNextByte()
           
 boolean hasNextByte(int radix)
           
 boolean hasNextDouble()
           
 boolean hasNextFloat()
           
 boolean hasNextInt()
           
 boolean hasNextInt(int radix)
           
 boolean hasNextLine()
           
 boolean hasNextLong()
           
 boolean hasNextShort()
           
 boolean hasNextShort(int radix)
           
 java.io.IOException ioException()
           
 java.util.Locale locale()
           
 java.util.regex.MatchResult match()
           
 java.lang.String next()
           
 java.lang.String next(java.util.regex.Pattern pattern)
           
 java.lang.String next(java.lang.String pattern)
           
 java.math.BigDecimal nextBigDecimal()
           
 java.math.BigInteger nextBigInteger()
           
 java.math.BigInteger nextBigInteger(int radix)
           
 boolean nextBoolean()
           
 byte nextByte()
           
 byte nextByte(int radix)
           
 double nextDouble()
           
 float nextFloat()
           
 int nextInt()
           
 int nextInt(int radix)
           
 java.lang.String nextLine()
           
 long nextLong()
           
 long nextLong(int radix)
           
 short nextShort()
           
 short nextShort(int radix)
           
 int radix()
           
 void remove()
           
 java.util.Scanner skip(java.util.regex.Pattern pattern)
           
 java.util.Scanner skip(java.lang.String pattern)
           
 java.lang.String toString()
           
 java.util.Scanner useDelimiter(java.util.regex.Pattern pattern)
           
 java.util.Scanner useDelimiter(java.lang.String pattern)
           
 java.util.Scanner useLocale(java.util.Locale locale)
           
 java.util.Scanner useRadix(int radix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInput

public FileInput(java.lang.String source)

FileInput

public FileInput(java.lang.String source,
                 java.lang.String charsetName)

FileInput

public FileInput(java.io.InputStream source)

FileInput

public FileInput(java.io.InputStream source,
                 java.lang.String charsetName)

FileInput

public FileInput()
Method Detail

close

public void close()

delimiter

public java.util.regex.Pattern delimiter()

findInLine

public java.lang.String findInLine(java.util.regex.Pattern pattern)

findInLine

public java.lang.String findInLine(java.lang.String pattern)

findWithinHorizon

public java.lang.String findWithinHorizon(java.util.regex.Pattern pattern,
                                          int horizon)

findWithinHorizon

public java.lang.String findWithinHorizon(java.lang.String pattern,
                                          int horizon)

hasNext

public boolean hasNext()

hasNext

public boolean hasNext(java.util.regex.Pattern pattern)

hasNext

public boolean hasNext(java.lang.String pattern)

hasNextBigDecimal

public boolean hasNextBigDecimal()

hasNextBigInteger

public boolean hasNextBigInteger()

hasNextBigInteger

public boolean hasNextBigInteger(int radix)

hasNextBoolean

public boolean hasNextBoolean()

hasNextByte

public boolean hasNextByte()

hasNextByte

public boolean hasNextByte(int radix)

hasNextDouble

public boolean hasNextDouble()

hasNextFloat

public boolean hasNextFloat()

hasNextInt

public boolean hasNextInt()

hasNextInt

public boolean hasNextInt(int radix)

hasNextLine

public boolean hasNextLine()

hasNextLong

public boolean hasNextLong()

hasNextShort

public boolean hasNextShort()

hasNextShort

public boolean hasNextShort(int radix)

ioException

public java.io.IOException ioException()

locale

public java.util.Locale locale()

match

public java.util.regex.MatchResult match()

next

public java.lang.String next()

next

public java.lang.String next(java.util.regex.Pattern pattern)

next

public java.lang.String next(java.lang.String pattern)

nextBigDecimal

public java.math.BigDecimal nextBigDecimal()

nextBigInteger

public java.math.BigInteger nextBigInteger()

nextBigInteger

public java.math.BigInteger nextBigInteger(int radix)

nextBoolean

public boolean nextBoolean()

nextByte

public byte nextByte()

nextByte

public byte nextByte(int radix)

nextDouble

public double nextDouble()

nextFloat

public float nextFloat()

nextInt

public int nextInt()

nextInt

public int nextInt(int radix)

nextLine

public java.lang.String nextLine()

nextLong

public long nextLong()

nextLong

public long nextLong(int radix)

nextShort

public short nextShort()

nextShort

public short nextShort(int radix)

radix

public int radix()

remove

public void remove()

skip

public java.util.Scanner skip(java.util.regex.Pattern pattern)

skip

public java.util.Scanner skip(java.lang.String pattern)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

useDelimiter

public java.util.Scanner useDelimiter(java.util.regex.Pattern pattern)

useDelimiter

public java.util.Scanner useDelimiter(java.lang.String pattern)

useLocale

public java.util.Scanner useLocale(java.util.Locale locale)

useRadix

public java.util.Scanner useRadix(int radix)