Package slash.navigation.base
Class NavigationFormatParser
java.lang.Object
slash.navigation.base.NavigationFormatParser
Parses byte streams with navigation information via
NavigationFormat classes.- Author:
- Christian Pesch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic intgetNumberOfFilesToWriteFor(BaseRoute<?, ?> route, NavigationFormat<?> format, boolean duplicateFirstPosition) read(File source, List<? extends NavigationFormat<?>> formats) read(InputStream source) read(InputStream source, List<? extends NavigationFormat<?>> formats) read(URL url, List<? extends NavigationFormat<?>> formats) voidvoidwrite(List<BaseRoute<?, ?>> routes, MultipleRoutesFormat<?> format, File target) voidwrite(BaseRoute<?, ?> route, NavigationFormat<?> format, boolean duplicateFirstPosition, boolean ignoreMaximumPositionCount, ParserCallback parserCallback, File... targets) voidwrite(BaseRoute<?, ?> route, NavigationFormat<?> format, File target)
-
Field Details
-
TOTAL_BUFFER_SIZE
public static final int TOTAL_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
Method Details
-
read
public ParserResult read(File source, List<? extends NavigationFormat<?>> formats) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
public ParserResult read(InputStream source, List<? extends NavigationFormat<?>> formats) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException