public abstract class CacheFileEditor extends CacheEditor
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes |
protected String |
content |
static int |
DEFAULT_BUFFER_SIZE |
protected InputStream |
inputStream |
protected org.eclipse.jgit.lib.FileMode |
mode |
protected File |
sourceFile |
protected Path |
sourcePath |
path| Modifier | Constructor and Description |
|---|---|
protected |
CacheFileEditor(String path) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createEntry(CacheStateProvider provider) |
protected void |
prepareBytes() |
protected void |
prepareFileMode() |
void |
setBytes(byte[] bytes) |
void |
setContent(String content) |
void |
setInputStream(InputStream inputStream) |
void |
setMode(org.eclipse.jgit.lib.FileMode mode) |
void |
setSourceFile(File sourceFile) |
void |
setSourcePath(Path sourcePath) |
editpublic static int DEFAULT_BUFFER_SIZE
protected byte[] bytes
protected String content
protected InputStream inputStream
protected Path sourcePath
protected File sourceFile
protected org.eclipse.jgit.lib.FileMode mode
public void setBytes(@Nonnull byte[] bytes)
public void setInputStream(@Nonnull InputStream inputStream)
public void setMode(@Nonnull org.eclipse.jgit.lib.FileMode mode)
protected void prepareFileMode()
throws IOException
IOExceptionprotected void prepareBytes()
throws IOException
IOExceptionprotected void createEntry(@Nonnull CacheStateProvider provider) throws IOException
IOExceptionCopyright © 2015. All rights reserved.