gov.loc.repository.bagit
Class BagHelper

java.lang.Object
  extended by gov.loc.repository.bagit.BagHelper

public class BagHelper
extends java.lang.Object


Constructor Summary
BagHelper()
           
 
Method Summary
static java.lang.String generateBagSize(Bag bag)
           
static long generatePayloadOctetCount(Bag bag)
           
static java.lang.String generatePayloadOxum(Bag bag)
           
static long generateTagOctetCount(Bag bag)
           
static java.lang.String getVersion(java.io.File bagFile)
           
static boolean isPayload(java.lang.String filepath, Bag.BagConstants bagConstants)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BagHelper

public BagHelper()
Method Detail

getVersion

public static java.lang.String getVersion(java.io.File bagFile)

generatePayloadOctetCount

public static long generatePayloadOctetCount(Bag bag)

generatePayloadOxum

public static java.lang.String generatePayloadOxum(Bag bag)

generateTagOctetCount

public static long generateTagOctetCount(Bag bag)

generateBagSize

public static java.lang.String generateBagSize(Bag bag)

isPayload

public static boolean isPayload(java.lang.String filepath,
                                Bag.BagConstants bagConstants)