Class ConvertCommand
java.lang.Object
slash.navigation.converter.cmdline.ConvertCommand
convert --to <format> [--from <format>[,<format>...]] <source file> <target file>: the
non-interactive conversion used by the online converter on the server.
Unlike the legacy <source> <target format> <target> mode it
- restricts reading to the formats named with
--from(no probing of all 100+ readers, some of which start external programs), and - writes exactly the given target path and never splits into several files,
- refuses the sponsor-gated write formats, which cannot ask for a donation here,
- reports through exit codes and one line of JSON on
outinstead ofSystem.exitin the middle of the work.
Gpx11Format.- Author:
- Christian Pesch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
OK
public static final int OK- See Also:
-
USAGE
public static final int USAGE- See Also:
-
SOURCE_MISSING
public static final int SOURCE_MISSING- See Also:
-
TARGET_EXISTS
public static final int TARGET_EXISTS- See Also:
-
UNKNOWN_TARGET_FORMAT
public static final int UNKNOWN_TARGET_FORMAT- See Also:
-
UNKNOWN_SOURCE_FORMAT
public static final int UNKNOWN_SOURCE_FORMAT- See Also:
-
TARGET_FORMAT_NOT_ALLOWED
public static final int TARGET_FORMAT_NOT_ALLOWED- See Also:
-
SOURCE_NOT_READABLE
public static final int SOURCE_NOT_READABLE- See Also:
-
NOTHING_TO_CONVERT
public static final int NOTHING_TO_CONVERT- See Also:
-
NEEDS_MULTIPLE_FILES
public static final int NEEDS_MULTIPLE_FILES- See Also:
-
WRITE_FAILED
public static final int WRITE_FAILED- See Also:
-
-
Constructor Details
-
ConvertCommand
public ConvertCommand()
-
-
Method Details
-
run
-