Table of Contents

Class Scanner

Namespace
Java.Util
Assembly
MASES.JNet.dll
public class Scanner : Iterator<String>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IIterator<String>
Inheritance
JVMBridgeBase
JVMBridgeBase<Iterator<String>>
Scanner
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Iterator<String>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Iterator<String>>.IsAssignableFrom<T>()
JVMBridgeBase<Iterator<String>>.Execute<T>(params T[])
JVMBridgeBase<Iterator<String>>.DynBridgeClazz
JVMBridgeBase<Iterator<String>>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Scanner()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public Scanner()

Scanner(File)

public Scanner(File arg0)

Parameters

arg0 File

File

Exceptions

FileNotFoundException

Scanner(File, String)

public Scanner(File arg0, String arg1)

Parameters

arg0 File

File

arg1 String

String

Exceptions

FileNotFoundException

Scanner(File, Charset)

public Scanner(File arg0, Charset arg1)

Parameters

arg0 File

File

arg1 Charset

Charset

Exceptions

IOException

Scanner(InputStream)

public Scanner(InputStream arg0)

Parameters

arg0 InputStream

InputStream

Scanner(InputStream, String)

public Scanner(InputStream arg0, String arg1)

Parameters

arg0 InputStream

InputStream

arg1 String

String

Scanner(InputStream, Charset)

public Scanner(InputStream arg0, Charset arg1)

Parameters

arg0 InputStream

InputStream

arg1 Charset

Charset

Scanner(Readable)

public Scanner(Readable arg0)

Parameters

arg0 Readable

Readable

Scanner(String)

public Scanner(String arg0)

Parameters

arg0 String

String

Scanner(ReadableByteChannel)

public Scanner(ReadableByteChannel arg0)

Parameters

arg0 ReadableByteChannel

ReadableByteChannel

Scanner(ReadableByteChannel, String)

public Scanner(ReadableByteChannel arg0, String arg1)

Parameters

arg0 ReadableByteChannel

ReadableByteChannel

arg1 String

String

Scanner(ReadableByteChannel, Charset)

public Scanner(ReadableByteChannel arg0, Charset arg1)

Parameters

arg0 ReadableByteChannel

ReadableByteChannel

arg1 Charset

Charset

Scanner(Path)

public Scanner(Path arg0)

Parameters

arg0 Path

Path

Exceptions

IOException

Scanner(Path, String)

public Scanner(Path arg0, String arg1)

Parameters

arg0 Path

Path

arg1 String

String

Exceptions

IOException

Scanner(Path, Charset)

public Scanner(Path arg0, Charset arg1)

Parameters

arg0 Path

Path

arg1 Charset

Charset

Exceptions

IOException

Scanner(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public Scanner(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Close()

public void Close()

Delimiter()

public Pattern Delimiter()

Returns

Pattern

Pattern

FindAll(String)

public Stream<MatchResult> FindAll(String arg0)

Parameters

arg0 String

String

Returns

Stream<MatchResult>

Stream

FindAll(Pattern)

public Stream<MatchResult> FindAll(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Returns

Stream<MatchResult>

Stream

FindInLine(String)

public String FindInLine(String arg0)

Parameters

arg0 String

String

Returns

String

String

FindInLine(Pattern)

public String FindInLine(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Returns

String

String

FindWithinHorizon(String, int)

public String FindWithinHorizon(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

String

String

FindWithinHorizon(Pattern, int)

public String FindWithinHorizon(Pattern arg0, int arg1)

Parameters

arg0 Pattern

Pattern

arg1 int

int

Returns

String

String

HasNext()

public bool HasNext()

Returns

bool

bool

HasNext(String)

public bool HasNext(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

HasNext(Pattern)

public bool HasNext(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Returns

bool

bool

HasNextBigDecimal()

public bool HasNextBigDecimal()

Returns

bool

bool

HasNextBigInteger()

public bool HasNextBigInteger()

Returns

bool

bool

HasNextBigInteger(int)

public bool HasNextBigInteger(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

HasNextBoolean()

public bool HasNextBoolean()

Returns

bool

bool

HasNextByte()

public bool HasNextByte()

Returns

bool

bool

HasNextByte(int)

public bool HasNextByte(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

HasNextDouble()

public bool HasNextDouble()

Returns

bool

bool

HasNextFloat()

public bool HasNextFloat()

Returns

bool

bool

HasNextInt()

public bool HasNextInt()

Returns

bool

bool

HasNextInt(int)

public bool HasNextInt(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

HasNextLine()

public bool HasNextLine()

Returns

bool

bool

HasNextLong()

public bool HasNextLong()

Returns

bool

bool

HasNextLong(int)

public bool HasNextLong(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

HasNextShort()

public bool HasNextShort()

Returns

bool

bool

HasNextShort(int)

public bool HasNextShort(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

IoException()

public IOException IoException()

Returns

IOException

IOException

Locale()

public Locale Locale()

Returns

Locale

Locale

Match()

public MatchResult Match()

Returns

MatchResult

MatchResult

Next()

public object Next()

Returns

object

object

Next(String)

public String Next(String arg0)

Parameters

arg0 String

String

Returns

String

String

Next(Pattern)

public String Next(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Returns

String

String

NextBigDecimal()

public BigDecimal NextBigDecimal()

Returns

BigDecimal

BigDecimal

NextBigInteger()

public BigInteger NextBigInteger()

Returns

BigInteger

BigInteger

NextBigInteger(int)

public BigInteger NextBigInteger(int arg0)

Parameters

arg0 int

int

Returns

BigInteger

BigInteger

NextBoolean()

public bool NextBoolean()

Returns

bool

bool

NextByte()

public byte NextByte()

Returns

byte

byte

NextByte(int)

public byte NextByte(int arg0)

Parameters

arg0 int

int

Returns

byte

byte

NextDouble()

public double NextDouble()

Returns

double

double

NextFloat()

public float NextFloat()

Returns

float

float

NextInt()

public int NextInt()

Returns

int

int

NextInt(int)

public int NextInt(int arg0)

Parameters

arg0 int

int

Returns

int

int

NextLine()

public String NextLine()

Returns

String

String

NextLong()

public long NextLong()

Returns

long

long

NextLong(int)

public long NextLong(int arg0)

Parameters

arg0 int

int

Returns

long

long

NextShort()

public short NextShort()

Returns

short

short

NextShort(int)

public short NextShort(int arg0)

Parameters

arg0 int

int

Returns

short

short

Radix()

public int Radix()

Returns

int

int

Remove()

public void Remove()

Reset()

public Scanner Reset()

Returns

Scanner

Scanner

Skip(String)

public Scanner Skip(String arg0)

Parameters

arg0 String

String

Returns

Scanner

Scanner

Skip(Pattern)

public Scanner Skip(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Returns

Scanner

Scanner

Tokens()

public Stream<String> Tokens()

Returns

Stream<String>

Stream

UseDelimiter(String)

public Scanner UseDelimiter(String arg0)

Parameters

arg0 String

String

Returns

Scanner

Scanner

UseDelimiter(Pattern)

public Scanner UseDelimiter(Pattern arg0)

Parameters

arg0 Pattern

Pattern

Returns

Scanner

Scanner

UseLocale(Locale)

public Scanner UseLocale(Locale arg0)

Parameters

arg0 Locale

Locale

Returns

Scanner

Scanner

UseRadix(int)

public Scanner UseRadix(int arg0)

Parameters

arg0 int

int

Returns

Scanner

Scanner

Operators

implicit operator Closeable(Scanner)

Converter from Scanner to Closeable

public static implicit operator Closeable(Scanner t)

Parameters

t Scanner

Returns

Closeable