Package microsoft.visualbasic.fileio
Class TextFieldParser
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.visualbasic.fileio.TextFieldParser
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class TextFieldParser extends NetObject implements java.lang.AutoCloseable
The base .NET class managing Microsoft.VisualBasic.FileIO.TextFieldParser, Microsoft.VisualBasic.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.VisualBasic.FileIO.TextFieldParser
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: Microsoft.VisualBasic.Corestatic java.lang.String
className
Qualified class name: Microsoft.VisualBasic.FileIO.TextFieldParserstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TextFieldParser()
TextFieldParser(java.lang.Object instance)
Internal constructor.TextFieldParser(java.lang.String path)
TextFieldParser(java.lang.String path, Encoding defaultEncoding)
TextFieldParser(java.lang.String path, Encoding defaultEncoding, boolean detectEncoding)
TextFieldParser(Stream stream)
TextFieldParser(Stream stream, Encoding defaultEncoding)
TextFieldParser(Stream stream, Encoding defaultEncoding, boolean detectEncoding)
TextFieldParser(Stream stream, Encoding defaultEncoding, boolean detectEncoding, boolean leaveOpen)
TextFieldParser(TextReader reader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextFieldParser
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTextFieldParser
, a cast assert is made to check if types are compatible.void
close()
void
Close()
void
Dispose()
java.lang.String[]
getCommentTokens()
java.lang.String[]
getDelimiters()
boolean
getEndOfData()
java.lang.String
getErrorLine()
long
getErrorLineNumber()
int[]
getFieldWidths()
boolean
getHasFieldsEnclosedInQuotes()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typelong
getLineNumber()
FieldType
getTextFieldType()
boolean
getTrimWhiteSpace()
java.lang.String
PeekChars(int numberOfChars)
java.lang.String[]
ReadFields()
java.lang.String
ReadLine()
java.lang.String
ReadToEnd()
void
setCommentTokens(java.lang.String[] CommentTokens)
void
setDelimiters(java.lang.String[] Delimiters)
void
SetDelimiters(java.lang.String... delimiters)
void
SetDelimiters(JCORefOut dupParam0)
void
setFieldWidths(int[] FieldWidths)
void
SetFieldWidths(int... fieldWidths)
void
SetFieldWidths(JCORefOut dupParam0)
void
setHasFieldsEnclosedInQuotes(boolean HasFieldsEnclosedInQuotes)
void
setJCOInstance(JCObject instance)
void
setTextFieldType(FieldType TextFieldType)
void
setTrimWhiteSpace(boolean TrimWhiteSpace)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: Microsoft.VisualBasic.Core- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: Microsoft.VisualBasic.FileIO.TextFieldParser- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextFieldParser
public TextFieldParser(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
TextFieldParser
public TextFieldParser() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TextFieldParser
public TextFieldParser(Stream stream, Encoding defaultEncoding, boolean detectEncoding, boolean leaveOpen) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FormatException
-
TextFieldParser
public TextFieldParser(Stream stream, Encoding defaultEncoding, boolean detectEncoding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FormatException
-
TextFieldParser
public TextFieldParser(Stream stream, Encoding defaultEncoding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FormatException
-
TextFieldParser
public TextFieldParser(Stream stream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FormatException
-
TextFieldParser
public TextFieldParser(TextReader reader) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
-
TextFieldParser
public TextFieldParser(java.lang.String path, Encoding defaultEncoding, boolean detectEncoding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FileNotFoundException, SerializationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FileNotFoundException
SerializationException
-
TextFieldParser
public TextFieldParser(java.lang.String path, Encoding defaultEncoding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FileNotFoundException, SerializationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FileNotFoundException
SerializationException
-
TextFieldParser
public TextFieldParser(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException, RegexParseException, KeyNotFoundException, FileNotFoundException, SerializationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
NullReferenceException
IndexOutOfRangeException
RegexParseException
KeyNotFoundException
FileNotFoundException
SerializationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TextFieldParser cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTextFieldParser
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TextFieldParser
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
PeekChars
public java.lang.String PeekChars(int numberOfChars) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
ReadLine
public java.lang.String ReadLine() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
ArrayTypeMismatchException
-
ReadToEnd
public java.lang.String ReadToEnd() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException
-
ReadFields
public java.lang.String[] ReadFields() throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, FormatException, OverflowException, ArrayTypeMismatchException, UnreachableException, RegexParseException, MalformedLineException, NotImplementedException, RegexMatchTimeoutException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
IndexOutOfRangeException
NullReferenceException
NotSupportedException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
FormatException
OverflowException
ArrayTypeMismatchException
UnreachableException
RegexParseException
MalformedLineException
NotImplementedException
RegexMatchTimeoutException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
SetDelimiters
public void SetDelimiters(java.lang.String... delimiters) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, FormatException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
FormatException
-
SetDelimiters
public void SetDelimiters(JCORefOut dupParam0) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, FormatException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NullReferenceException
NotSupportedException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
FormatException
-
SetFieldWidths
public void SetFieldWidths(int... fieldWidths) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, FormatException
-
SetFieldWidths
public void SetFieldWidths(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, FormatException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getEndOfData
public boolean getEndOfData() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, FormatException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
IndexOutOfRangeException
OutOfMemoryException
InvalidOperationException
FormatException
RankException
ArrayTypeMismatchException
InvalidCastException
-
getHasFieldsEnclosedInQuotes
public boolean getHasFieldsEnclosedInQuotes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHasFieldsEnclosedInQuotes
public void setHasFieldsEnclosedInQuotes(boolean HasFieldsEnclosedInQuotes) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTrimWhiteSpace
public boolean getTrimWhiteSpace() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTrimWhiteSpace
public void setTrimWhiteSpace(boolean TrimWhiteSpace) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFieldWidths
public int[] getFieldWidths() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setFieldWidths
public void setFieldWidths(int[] FieldWidths) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getErrorLineNumber
public long getErrorLineNumber() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLineNumber
public long getLineNumber() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
getTextFieldType
public FieldType getTextFieldType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTextFieldType
public void setTextFieldType(FieldType TextFieldType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, FormatException, InvalidEnumArgumentException
-
getErrorLine
public java.lang.String getErrorLine() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCommentTokens
public java.lang.String[] getCommentTokens() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCommentTokens
public void setCommentTokens(java.lang.String[] CommentTokens) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, NotImplementedException, RegexMatchTimeoutException, OutOfMemoryException, ExternalException, CultureNotFoundException, IndexOutOfRangeException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NullReferenceException
NotImplementedException
RegexMatchTimeoutException
OutOfMemoryException
ExternalException
CultureNotFoundException
IndexOutOfRangeException
FormatException
-
getDelimiters
public java.lang.String[] getDelimiters() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDelimiters
public void setDelimiters(java.lang.String[] Delimiters) throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException
- Throws:
java.lang.Throwable
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
IndexOutOfRangeException
ArgumentException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
ObjectDisposedException
InvalidOperationException
-
-