org.apache.jackrabbit.core.persistence.util
Class BundleDumper

java.lang.Object
  extended by org.apache.jackrabbit.core.persistence.util.BundleDumper

public class BundleDumper
extends Object

This utility class can dump the contents of a node bundle. This class is based on BundleReader, but is able to dump even if the data is corrupt (unlike the BundleReader). The class does not have any dependencies so it can be run from the command line without problems (without having to add any jar files to the classpath).


Field Summary
static int BINARY
           
static int BOOLEAN
           
static int DATE
           
static int DECIMAL
           
static int DOUBLE
           
static int LONG
           
static int NAME
           
static int PATH
           
static int REFERENCE
           
static int STRING
           
static int UNDEFINED
           
static int URI
           
static int WEAKREFERENCE
           
 
Constructor Summary
BundleDumper()
           
 
Method Summary
static String convertBytesToHex(byte[] value)
           
 String dump(byte[] bundle)
           
static void main(String... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

BINARY

public static final int BINARY
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

PATH

public static final int PATH
See Also:
Constant Field Values

REFERENCE

public static final int REFERENCE
See Also:
Constant Field Values

WEAKREFERENCE

public static final int WEAKREFERENCE
See Also:
Constant Field Values

URI

public static final int URI
See Also:
Constant Field Values

DECIMAL

public static final int DECIMAL
See Also:
Constant Field Values
Constructor Detail

BundleDumper

public BundleDumper()
Method Detail

main

public static void main(String... args)
                 throws IOException
Throws:
IOException

dump

public String dump(byte[] bundle)
            throws IOException
Throws:
IOException

convertBytesToHex

public static String convertBytesToHex(byte[] value)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.