public final class ImportLinkFileChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IMPORT_LINK_FILE_NAME |
static String |
IMPORT_LINK_HEADER |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkHeader(InputStream is)
Checks if a file has a header following import link file rules.
|
static boolean |
checkHeaderContents(String header)
Checks if header contents follow import link file rules.
|
static boolean |
checkName(File f)
Checks if a file has a name following import link file rules.
|
static void |
dropHeader(BufferedReader reader)
Removes import link file header from a reader.
|
public static final String IMPORT_LINK_FILE_NAME
public static final String IMPORT_LINK_HEADER
public static boolean checkName(File f)
public static void dropHeader(BufferedReader reader) throws IOException
IOExceptionpublic static boolean checkHeader(InputStream is)
public static boolean checkHeaderContents(String header)
Copyright © 2017. All rights reserved.