| Modifier and Type | Class and Description |
|---|---|
| public static enum | FileElement.
The file element type. |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private InputStream | |
| private File | |
| private final FileElement. | |
| private final File |
| Access | Constructor and Description |
|---|---|
| public | FileElement(String
the file path path, FileElement.the element type typeCreates file element for path. |
| public | FileElement(String
the file path path, FileElement.the element type type,the working directory of the path (can be null, then current
working dir is used) workDir)Creates file element for path. |
| public | FileElement(String
the file path path, FileElement.the element type type,the working directory of the path (can be null, then current
working dir is used) workDir, InputStream the object stream to load and write on demand, @see getFile(),
to tempFile once (can be null) stream)Create file element |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private static void | |
| public File | Returns: temporary file in directory or in the system temporary directorythe directory for the file (can be null); if null system
temporary directory is used directory)Create temporary file in given or system temporary directory. |
| public File | Returns: the object streamGet file Return
|
| public String | |
| private static File | |
| public FileElement. | |
| public boolean | |
| public String | Returns: the replaced input stringthe input string input)Replace variable in input. |
| private static String[] |
| path | back to summary |
|---|---|
| private final String path | |
| stream | back to summary |
|---|---|
| private InputStream stream | |
| tempFile | back to summary |
|---|---|
| private File tempFile | |
| type | back to summary |
|---|---|
| private final FileElement. | |
| workDir | back to summary |
|---|---|
| private final File workDir | |
| FileElement | back to summary |
|---|---|
| public FileElement(String path, FileElement. Creates file element for path.
| |
| FileElement | back to summary |
|---|---|
| public FileElement(String path, FileElement. Creates file element for path.
| |
| FileElement | back to summary |
|---|---|
| public FileElement(String path, FileElement. Create file element
| |
| addToEnv | back to summary |
|---|---|
| public void addToEnv(Map<String, String> env) throws IOException Add variable to environment map.
| |
| cleanTemporaries | back to summary |
|---|---|
| public void cleanTemporaries() Delete and invalidate temporary file if necessary. | |
| copyFromStream | back to summary |
|---|---|
| private static void copyFromStream(final File file, final InputStream stream) throws IOException, FileNotFoundException | |
| createTempFile | back to summary |
|---|---|
| public File createTempFile(File directory) throws IOException Create temporary file in given or system temporary directory.
| |
| getFile | back to summary |
|---|---|
| public File getFile() throws IOException Get file Return
| |
| getPath | back to summary |
|---|---|
| public String getPath() Get path
| |
| getTempFile | back to summary |
|---|---|
| private static File getTempFile(final File file, final String midName, final File workingDir) throws IOException | |
| getType | back to summary |
|---|---|
| public FileElement. Get type
| |
| isNullPath | back to summary |
|---|---|
| public boolean isNullPath() Check if path id "/dev/null"
| |
| replaceVariable | back to summary |
|---|---|
| public String replaceVariable(String input) throws IOException Replace variable in input.
| |
| splitBaseFileNameAndExtension | back to summary |
|---|---|
| private static String[] splitBaseFileNameAndExtension(File file) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FileElement. | BACKUP
The backup file element (copy of merged / conflicted). |
| public static final FileElement. | BASE
The base file element (of ours and theirs). |
| public static final FileElement. | LOCAL
The local file element (ours). |
| public static final FileElement. | MERGED
The merged file element (path in worktree). |
| public static final FileElement. | REMOTE
The remote file element (theirs). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FileElement. | |
| public static FileElement. |
| BACKUP | back to summary |
|---|---|
| public static final FileElement. The backup file element (copy of merged / conflicted). | |
| BASE | back to summary |
|---|---|
| public static final FileElement. The base file element (of ours and theirs). | |
| LOCAL | back to summary |
|---|---|
| public static final FileElement. The local file element (ours). | |
| MERGED | back to summary |
|---|---|
| public static final FileElement. The merged file element (path in worktree). | |
| REMOTE | back to summary |
|---|---|
| public static final FileElement. The remote file element (theirs). | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static FileElement. | |
| values | back to summary |
|---|---|
| public static FileElement. | |