public abstract class Formatter
extends java.lang.Object
| Constructor and Description | 
|---|
Formatter()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
fillDataPieces(FetchedData data,
              int eltCount,
              java.lang.String[] titles)
Automatically fills the data pieces of a fetched data with the data that
 it contains and the given titles. 
 | 
static java.lang.String | 
getMatches(java.lang.String data,
          java.lang.String pattern)
Find matches from a given data and a pattern 
 | 
static double | 
humanReadabletoBytes(java.lang.String size)
Transforms human readable size prepend by M, K, G \n character 
 | 
static java.util.List<FetchedData> | 
parseRawResultInFetchedDataList(java.lang.String result)
Parses data into a list. 
 | 
static java.lang.String | 
transformLineBreaksToChar(java.lang.String data)
Transforms line breaks into the \n character 
 | 
public static java.util.List<FetchedData> parseRawResultInFetchedDataList(java.lang.String result)
result - The raw result to be parseddelimiter - The string used to parse the raw resultpublic static void fillDataPieces(FetchedData data, int eltCount, java.lang.String[] titles)
data - The fetched data in which data pieces must be filledeltCount - The number of elements to be readtitles - The list of titles matching the data piecespublic static java.lang.String getMatches(java.lang.String data,
                                          java.lang.String pattern)
                                   throws java.util.NoSuchElementException
data - The data to be analyzedpattern - The pattern to be usedjava.util.NoSuchElementExceptionpublic static java.lang.String transformLineBreaksToChar(java.lang.String data)
data - the data in which the line breaks need to be transformedpublic static double humanReadabletoBytes(java.lang.String size)
size - Copyright © 2021. All Rights Reserved.