Package net.hydromatic.morel.eval
Class Files
java.lang.Object
net.hydromatic.morel.eval.Files
Implementations of
File.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAbstract implementation of File.private static classFile that is not a directory, and can be parsed into a set of records.private static classFile that is a directory.(package private) static enumDescribes a type of file that can be read by this reader.private static classprivate static classFile that we have not yet categorized. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileCreates a file (or directory).(package private) static Files.UnknownFilecreateUnknown(@Nullable Files.Directory directory, File ioFile) Creates a function that converts a string field value to the desired type.private static StringremoveSuffix(String s, String suffix) Returns a string without its suffix; for example,removeSuffix("x.txt", ".txt")returns"x".(package private) static ObjectConverts "abc" to "abc" and "'abc, def'" to "abc, def".
-
Constructor Details
-
Files
private Files()
-
-
Method Details
-
create
Creates a file (or directory). Never returns null. -
createUnknown
-
removeSuffix
Returns a string without its suffix; for example,removeSuffix("x.txt", ".txt")returns"x". -
deduceFieldsCsv
- Throws:
IOException
-
parser
Creates a function that converts a string field value to the desired type. -
unquoteString
Converts "abc" to "abc" and "'abc, def'" to "abc, def".
-