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, Version=10.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.StringassemblyFullNameFully assembly qualified name: Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: Microsoft.VisualBasicstatic java.lang.StringclassNameQualified class name: Microsoft.VisualBasic.FileIO.TextFieldParserstatic JCTypeclassTypeThe 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 TextFieldParsercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTextFieldParser, a cast assert is made to check if types are compatible.voidclose()voidClose()voidDispose()java.lang.String[]getCommentTokens()java.lang.String[]getDelimiters()booleangetEndOfData()java.lang.StringgetErrorLine()longgetErrorLineNumber()int[]getFieldWidths()booleangetHasFieldsEnclosedInQuotes()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypelonggetLineNumber()FieldTypegetTextFieldType()booleangetTrimWhiteSpace()java.lang.StringPeekChars(int numberOfChars)java.lang.String[]ReadFields()java.lang.StringReadLine()java.lang.StringReadToEnd()voidsetCommentTokens(java.lang.String[] CommentTokens)voidsetDelimiters(java.lang.String[] Delimiters)voidSetDelimiters(java.lang.String... delimiters)voidSetDelimiters(JCORefOut dupParam0)voidsetFieldWidths(int[] FieldWidths)voidSetFieldWidths(int... fieldWidths)voidSetFieldWidths(JCORefOut dupParam0)voidsetHasFieldsEnclosedInQuotes(boolean HasFieldsEnclosedInQuotes)voidsetJCOInstance(JCObject instance)voidsetTextFieldType(FieldType TextFieldType)voidsetTrimWhiteSpace(boolean TrimWhiteSpace)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: Microsoft.VisualBasic- 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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
TextFieldParser
public TextFieldParser() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
TextFieldParser
public TextFieldParser(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedException
-
TextFieldParser
public TextFieldParser(Stream stream, Encoding defaultEncoding) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedException
-
TextFieldParser
public TextFieldParser(Stream stream, Encoding defaultEncoding, boolean detectEncoding) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedException
-
TextFieldParser
public TextFieldParser(Stream stream, Encoding defaultEncoding, boolean detectEncoding, boolean leaveOpen) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedException
-
TextFieldParser
public TextFieldParser(TextReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedException
-
TextFieldParser
public TextFieldParser(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TextFieldParser
public TextFieldParser(java.lang.String path, Encoding defaultEncoding) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
TextFieldParser
public TextFieldParser(java.lang.String path, Encoding defaultEncoding, boolean detectEncoding) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static TextFieldParser cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTextFieldParser, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TextFieldParserinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
PeekChars
public java.lang.String PeekChars(int numberOfChars) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedException
-
ReadLine
public java.lang.String ReadLine() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, OutOfMemoryException
-
ReadToEnd
public java.lang.String ReadToEnd() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatException
-
ReadFields
public java.lang.String[] ReadFields() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, OverflowException, OutOfMemoryException, IndexOutOfRangeException, SecurityException, MalformedLineException, RegexMatchTimeoutException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionSecurityExceptionMalformedLineExceptionRegexMatchTimeoutException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
SetDelimiters
public void SetDelimiters(java.lang.String... delimiters) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException
-
SetDelimiters
public void SetDelimiters(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException
-
SetFieldWidths
public void SetFieldWidths(int... fieldWidths) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
SetFieldWidths
public void SetFieldWidths(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getEndOfData
public boolean getEndOfData() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, OutOfMemoryException
-
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, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ArgumentNullException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException
-
getErrorLineNumber
public long getErrorLineNumber() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getLineNumber
public long getLineNumber() throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
getTextFieldType
public FieldType getTextFieldType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTextFieldType
public void setTextFieldType(FieldType TextFieldType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentException
-
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, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, RegexMatchTimeoutException, CultureNotFoundException, NotSupportedException
-
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, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatException
-
-