com.abiquo.api.util.DataAdapter Class Reference
Utility class to assist the partition of plain data: Given a file path, and partitioning from number of lines, create numParts strings containing each part.
More...
List of all members.
|
Static Public Member Functions |
| static List< String > | getEncodedContent (String filePath, int iParts, int iPerPart) throws FileNotFoundException |
| | Splits the content of the file on iParts strings, each part containing iPerParts.
|
| static List< String > | getEncodedContent (FileReader reader, int iParts, int iPerPart) throws FileNotFoundException |
| | Splits the content of the file on iParts strings, each part containing iPerParts.
|
| static List< String > | getRawContent (String filePath, int iParts, int iPerPart) throws IOException |
| | Splits the content of the file on iParts strings, each part containing iPerParts.
|
Detailed Description
Utility class to assist the partition of plain data: Given a file path, and partitioning from number of lines, create numParts strings containing each part.
- Note:
- It provides some basic kind to Map paradigm for the demo with molecular input.
Member Function Documentation
| static List<String> com.abiquo.api.util.DataAdapter.getEncodedContent |
( |
String |
filePath, |
|
|
int |
iParts, |
|
|
int |
iPerPart | |
|
) |
| | throws FileNotFoundException [static] |
Splits the content of the file on iParts strings, each part containing iPerParts.
- Todo:
- use iPerPart now always 2x2.
- Parameters:
-
| filePath | the path to the input file |
| iParts | how many parts the result list will contain |
| iPerPart | how many consecutive lines from input are put on each part |
- Returns:
- a list of size iParts containing all the split content of filePath
- Exceptions:
-
| IOException | |
| FileNotFoundException | |
| static List<String> com.abiquo.api.util.DataAdapter.getEncodedContent |
( |
FileReader |
reader, |
|
|
int |
iParts, |
|
|
int |
iPerPart | |
|
) |
| | throws FileNotFoundException [static] |
Splits the content of the file on iParts strings, each part containing iPerParts.
- Todo:
- use iPerPart now always 2x2.
- Parameters:
-
| reader | the input file |
| iParts | how many parts the result list will contain |
| iPerPart | how many consecutive lines from input are put on each part |
- Returns:
- a list of size iParts containing all the split content of filePath
- Exceptions:
-
| IOException | |
| FileNotFoundException | |
| static List<String> com.abiquo.api.util.DataAdapter.getRawContent |
( |
String |
filePath, |
|
|
int |
iParts, |
|
|
int |
iPerPart | |
|
) |
| | throws IOException [static] |
Splits the content of the file on iParts strings, each part containing iPerParts.
- Todo:
- use iPerPart now always 2x2.
- Parameters:
-
| filePath | the path to the input file |
| iParts | how many parts the result list will contain |
| iPerPart | how many consecutive lines from input are put on each part |
- Returns:
- a list of size iParts containing all the split content of filePath
- Exceptions:
-
- Deprecated:
- use getEncodedContent
The documentation for this class was generated from the following file:
- src/com/abiquo/api/util/DataAdapter.java