Top Description Fields Constructors Methods
org.eclipse.jgit.lfs.errors

public Class CorruptMediaFile

extends IOException
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.text.MessageFormat, org.eclipse.jgit.lfs.internal.LfsText

Thrown when a LFS mediafile is found which doesn't have the expected size
Since
4.6

Field Summary

Modifier and TypeField and Description
private long
private Path
private static final long
private long

Constructor Summary

AccessConstructor and Description
public
CorruptMediaFile(Path mediaFile, long
a long.
expectedSize
,
long
a long.
size
)

Constructor for CorruptMediaFile.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the expected size of the media file
getExpectedSize
()

Get the expectedSize.

public Path

Returns:

the media file which seems to be corrupt
getMediaFile
()

Get the mediaFile.

public long

Returns:

the actual size of the media file in the file system
getSize
()

Get the size.

Field Detail

expectedSizeback to summary
private long expectedSize
mediaFileback to summary
private Path mediaFile
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

sizeback to summary
private long size

Constructor Detail

CorruptMediaFileback to summary
public CorruptMediaFile(Path mediaFile, long expectedSize, long size)

Constructor for CorruptMediaFile.

Parameters
mediaFile:Path

a java.nio.file.Path object.

expectedSize:long

a long.

size:long

a long.

Annotations
@SuppressWarnings:boxing

Method Detail

getExpectedSizeback to summary
public long getExpectedSize()

Get the expectedSize.

Returns:long

the expected size of the media file

getMediaFileback to summary
public Path getMediaFile()

Get the mediaFile.

Returns:Path

the media file which seems to be corrupt

getSizeback to summary
public long getSize()

Get the size.

Returns:long

the actual size of the media file in the file system