public class TextFieldParser extends NetObject implements java.lang.AutoCloseable
.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
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.VisualBasic
|
static java.lang.String |
className
Qualified class name: Microsoft.VisualBasic.FileIO.TextFieldParser
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TextFieldParser() |
TextFieldParser(java.lang.Object instance)
Internal constructor.
|
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(java.lang.String path) |
TextFieldParser(java.lang.String path,
Encoding defaultEncoding) |
TextFieldParser(java.lang.String path,
Encoding defaultEncoding,
boolean detectEncoding) |
TextFieldParser(TextReader reader) |
| Modifier and Type | Method and Description |
|---|---|
static TextFieldParser |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TextFieldParser, 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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
long |
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(JCORefOut dupParam0) |
void |
SetDelimiters(java.lang.String... delimiters) |
void |
setDelimiters(java.lang.String[] Delimiters) |
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) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TextFieldParser()
throws java.lang.Throwable
java.lang.Throwablepublic TextFieldParser(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic TextFieldParser(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic TextFieldParser(TextReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, KeyNotFoundException, NotSupportedException, RankException, SecurityException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionKeyNotFoundExceptionNotSupportedExceptionRankExceptionSecurityExceptionNotImplementedExceptionpublic static TextFieldParser cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TextFieldParser, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTextFieldParser instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic java.lang.String[] getCommentTokens()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String[] getDelimiters()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getEndOfData()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
NotSupportedException,
OutOfMemoryException
public java.lang.String getErrorLine()
throws java.lang.Throwable
java.lang.Throwablepublic long getErrorLineNumber()
throws java.lang.Throwable
java.lang.Throwablepublic int[] getFieldWidths()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getHasFieldsEnclosedInQuotes()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic long getLineNumber()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic FieldType getTextFieldType() throws java.lang.Throwable
java.lang.Throwablepublic boolean getTrimWhiteSpace()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String PeekChars(int numberOfChars)
throws java.lang.Throwable,
NotSupportedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionSecurityExceptionMalformedLineExceptionRegexMatchTimeoutExceptionpublic java.lang.String ReadLine()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
NotSupportedException,
OutOfMemoryException
public java.lang.String ReadToEnd()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void setCommentTokens(java.lang.String[] CommentTokens)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
OverflowException,
RegexMatchTimeoutException,
CultureNotFoundException,
NotSupportedException
public void SetDelimiters(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException
public void SetDelimiters(java.lang.String... delimiters)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
ArgumentOutOfRangeException,
FormatException
public void setDelimiters(java.lang.String[] Delimiters)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
NotSupportedException,
ArgumentOutOfRangeException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionpublic void SetFieldWidths(int... fieldWidths)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
NotSupportedException
public void setFieldWidths(int[] FieldWidths)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
NotImplementedException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
NotSupportedException
public void SetFieldWidths(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException
public void setHasFieldsEnclosedInQuotes(boolean HasFieldsEnclosedInQuotes)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setTextFieldType(FieldType TextFieldType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentExceptionpublic void setTrimWhiteSpace(boolean TrimWhiteSpace)
throws java.lang.Throwable
java.lang.Throwable