
io.permazen.cli.cmd.InputFileParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-cli Show documentation
Show all versions of permazen-cli Show documentation
Permazen classes supporting command line interfaces.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.cli.cmd;
import java.io.File;
class InputFileParser extends AbstractFileParser {
@Override
protected boolean validateFile(File file) {
return file.exists() && !file.isDirectory() && file.canRead();
}
@Override
protected IllegalArgumentException createParseException(File file) {
return new IllegalArgumentException(String.format("can't read file \"%s\"", file));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy