public class PackFile extends File
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
PackFile(File file)
Create a PackFile for a pack or related file.
|
PackFile(File directory,
ObjectId id,
PackExt ext)
Create a PackFile for a pack or related file.
|
PackFile(File directory,
String name)
Create a PackFile for a pack or related file.
|
PackFile(File directory,
String id,
PackExt ext)
Create a PackFile for a pack or related file.
|
Modifier and Type | Method and Description |
---|---|
PackFile |
create(PackExt ext)
Create a new similar PackFile with the given extension instead.
|
PackFile |
createForDirectory(File directory)
Create a new similar PackFile in the given directory.
|
PackFile |
createPreservedForDirectory(File directory)
Create a new similar preserved PackFile in the given directory.
|
String |
getId()
Getter for the field
id . |
PackExt |
getPackExt()
Getter for the field
packExt . |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public PackFile(File file)
file
- File pointing to the location of the file.public PackFile(File directory, ObjectId id, PackExt ext)
directory
- Directory to create the PackFile in.id
- the ObjectId
for this packext
- the packExt
of the name.public PackFile(File directory, String id, PackExt ext)
directory
- Directory to create the PackFile in.id
- the id
(40 Hex char) section of the pack name.ext
- the packExt
of the name.public String getId()
id
.id
(40 Hex char) section of the name.public PackExt getPackExt()
packExt
.packExt
of the name.public PackFile create(PackExt ext)
ext
- PackExt the extension to use.public PackFile createForDirectory(File directory)
directory
- Directory to create the new PackFile in.Copyright © 2021 Eclipse JGit Project. All rights reserved.