public class ParsedLineResult
extends java.lang.Object
Copyright (C) Micro Focus
| Constructor and Description |
|---|
ParsedLineResult(FileDescriptor pFileDescriptor,
java.util.List<IPropertyValue> pPropertyValues,
java.lang.String pUnparsedLine,
java.lang.String[] pRawValues)
Creates a new ParsedLineResult.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDelimiter() |
FileDescriptor |
getFileDescriptor() |
java.util.List<IPropertyValue> |
getPropertyValues() |
java.lang.String[] |
getRawValues() |
java.lang.String |
getUnparsedLine() |
static java.util.List<ParsedLineResult> |
parseLines(java.io.InputStream pIs,
java.lang.String pEncoding,
FileDescriptor pFD)
Parses an input stream containing an AWM list format and converts it to a
list of
ParsedLineResults. |
static java.util.List<ParsedLineResult> |
parseLines(java.util.List<java.lang.String> pLines,
FileDescriptor pFD)
Converts a list of lines to a list that contains lists of
IPropertyValues. |
public ParsedLineResult(FileDescriptor pFileDescriptor, java.util.List<IPropertyValue> pPropertyValues, java.lang.String pUnparsedLine, java.lang.String[] pRawValues)
pFileDescriptor - the file descriptorpPropertyValues - parsed property valuespUnparsedLine - the raw, unparsed linepRawValues - the split valuespublic static java.util.List<ParsedLineResult> parseLines(java.io.InputStream pIs, java.lang.String pEncoding, FileDescriptor pFD) throws TaurusToolException
ParsedLineResults.pIs - the input stream to parsepEncoding - the encoding for reading the stream (typically the local
system image code page)pFD - a FileDescriptor describing the lines of the element
listTaurusToolException - if an I/O exception occurs during reading the streampublic static java.util.List<ParsedLineResult> parseLines(java.util.List<java.lang.String> pLines, FileDescriptor pFD)
IPropertyValues.pLines - lines of an element listpFD - a FileDescriptor describing the lines of the element
listpublic FileDescriptor getFileDescriptor()
FileDescriptor that has been used for parsing the
line.public java.util.List<IPropertyValue> getPropertyValues()
IPropertyValues that have been parsed.public java.lang.String getUnparsedLine()
public java.lang.String getDelimiter()
FileDescriptor.getPropDelimiterWithoutQuotes()).public java.lang.String[] getRawValues()
Copyright © 2015 Micro Focus GmbH. All rights reserved.