public class ParserUtil extends Object
Constructor and Description |
---|
ParserUtil() |
Modifier and Type | Method and Description |
---|---|
List<List<Integer>> |
parseToListArrayInt(String file)
Parse a file with ranges of hexadecimal to a list of list of integers.
|
List<List<Integer>> |
parseToListArrayInt(String file,
Pattern pattern)
Parse a file with ranges of hexadecimal to a list of list of integers.
|
List<Integer> |
parseToListInteger(String file,
Pattern pattern)
Parse a file with hexadecimal to a list of integers.
|
Map<Integer,List<Integer>> |
parseToMapListInteger(String file,
Pattern patternLine,
Pattern mapTo)
Parse a file with mappings to a map of list of integers.
|
public List<Integer> parseToListInteger(String file, Pattern pattern) throws NumberFormatException, IOException
file
- with the RFC file to parsepattern
- of the linesIOException
- if a RFC file can't be readNumberFormatException
public Map<Integer,List<Integer>> parseToMapListInteger(String file, Pattern patternLine, Pattern mapTo) throws IOException
file
- with THE RFC file to parsepatternLine
- pattern of the linesmapTo
- pattern of the conversionIOException
- if a RFC file can't be readpublic List<List<Integer>> parseToListArrayInt(String file) throws NumberFormatException, IOException
file
- with the RFC file to parseIOException
- if a RFC file can't be readNumberFormatException
public List<List<Integer>> parseToListArrayInt(String file, Pattern pattern) throws NumberFormatException, IOException
file
- with the RFC file to parsepattern
- of the linesIOException
- if a RFC file can't be readNumberFormatException
Copyright © 2019–2025. All rights reserved.