Package io.github.astrapi69.file.create
Class FileContentInfo
- java.lang.Object
-
- io.github.astrapi69.file.create.FileInfo
-
- io.github.astrapi69.file.create.FileContentInfo
-
public class FileContentInfo extends FileInfo
The classFileContentInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileContentInfo.FileContentInfoBuilder<C extends FileContentInfo,B extends FileContentInfo.FileContentInfoBuilder<C,B>>
-
Nested classes/interfaces inherited from class io.github.astrapi69.file.create.FileInfo
FileInfo.FileInfoBuilder<C extends FileInfo,B extends FileInfo.FileInfoBuilder<C,B>>
-
-
Constructor Summary
Constructors Modifier Constructor Description FileContentInfo()
protected
FileContentInfo(FileContentInfo.FileContentInfoBuilder<?,?> b)
FileContentInfo(java.lang.String checksum, byte[] content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileContentInfo.FileContentInfoBuilder<?,?>
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getChecksum()
byte[]
getContent()
int
hashCode()
void
setChecksum(java.lang.String checksum)
void
setContent(byte[] content)
static java.io.File
toFile(FileContentInfo fileContentInfo)
static FileContentInfo
toFileContentInfo(java.io.File file)
java.lang.String
toString()
-
-
-
Constructor Detail
-
FileContentInfo
public FileContentInfo(java.lang.String checksum, byte[] content)
-
FileContentInfo
public FileContentInfo()
-
FileContentInfo
protected FileContentInfo(FileContentInfo.FileContentInfoBuilder<?,?> b)
-
-
Method Detail
-
toFileContentInfo
public static FileContentInfo toFileContentInfo(java.io.File file)
-
toFile
public static java.io.File toFile(FileContentInfo fileContentInfo)
-
builder
public static FileContentInfo.FileContentInfoBuilder<?,?> builder()
-
getChecksum
public java.lang.String getChecksum()
-
setChecksum
public void setChecksum(java.lang.String checksum)
-
getContent
public byte[] getContent()
-
setContent
public void setContent(byte[] content)
-
-