|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.Dump
public class Dump
Common methods for dump utilities.
Constructor Summary | |
---|---|
Dump()
CLASS CONSTRUCTOR. |
Method Summary | |
---|---|
protected static java.lang.String |
leading(int os,
int width)
Return leading characters to pad out the byte offset to field width. |
protected static java.lang.String |
leading(int os,
int width,
char pad)
Return leading characters to pad out the byte offset to field width. |
protected static java.lang.String |
leading(long os,
int width)
Return leading characters to pad out the byte offset to field width. |
protected static java.lang.String |
leading(long os,
int width,
char pad)
Return leading characters to pad out the byte offset to field width. |
protected static java.lang.String |
leading(java.lang.String s,
int width)
Return leading characters to pad out the string to field width. |
protected static java.lang.String |
leading(java.lang.String s,
int width,
char pad)
Return leading characters to pad out the string to field width. |
protected static java.lang.String |
readChars(java.io.DataInputStream stream,
int length)
Read and display a sequence of characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dump()
Method Detail |
---|
protected static java.lang.String leading(int os, int width)
os
- Byte offsetwidth
- Field width
protected static java.lang.String leading(long os, int width)
os
- Byte offsetwidth
- Field width
protected static java.lang.String leading(int os, int width, char pad)
os
- Byte offsetwidth
- Field widthpad
- Padding character
protected static java.lang.String leading(long os, int width, char pad)
os
- Byte offsetwidth
- Field widthpad
- Padding character
protected static java.lang.String leading(java.lang.String s, int width)
s
- Stringwidth
- Field width
protected static java.lang.String leading(java.lang.String s, int width, char pad)
s
- Stringwidth
- Field widthpad
- Padding character
protected static java.lang.String readChars(java.io.DataInputStream stream, int length) throws java.io.IOException
stream
- Data input streamlength
- Number of characters
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |