-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathBagitFileValues.java
More file actions
35 lines (30 loc) · 931 Bytes
/
BagitFileValues.java
File metadata and controls
35 lines (30 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package gov.loc.repository.bagit.reader;
import java.nio.charset.Charset;
import gov.loc.repository.bagit.domain.Version;
/**
* A simple data object for passing around all the bagit.txt file values
*/
public class BagitFileValues {
private final Version version;
private final Charset encoding;
private final Long payloadByteCount;
private final Long payloadFileCount;
public BagitFileValues(final Version version, final Charset encoding, final Long payloadByteCount, final Long payloadFileCount){
this.version = version;
this.encoding = encoding;
this.payloadByteCount = payloadByteCount;
this.payloadFileCount = payloadFileCount;
}
public Version getVersion() {
return version;
}
public Charset getEncoding() {
return encoding;
}
public Long getPayloadByteCount() {
return payloadByteCount;
}
public Long getPayloadFileCount() {
return payloadFileCount;
}
}