Package edu.harvard.hul.ois.jhove
Class Dump
java.lang.Object
edu.harvard.hul.ois.jhove.Dump
Common methods for dump utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringleading(int os, int width) Return leading characters to pad out the byte offset to field width.protected static Stringleading(int os, int width, char pad) Return leading characters to pad out the byte offset to field width.protected static Stringleading(long os, int width) Return leading characters to pad out the byte offset to field width.protected static Stringleading(long os, int width, char pad) Return leading characters to pad out the byte offset to field width.protected static StringReturn leading characters to pad out the string to field width.protected static StringReturn leading characters to pad out the string to field width.protected static StringreadChars(DataInputStream stream, int length) Read and display a sequence of characters.
-
Constructor Details
-
Dump
public Dump()CLASS CONSTRUCTOR.
-
-
Method Details
-
leading
Return leading characters to pad out the byte offset to field width.- Parameters:
os- Byte offsetwidth- Field width- Returns:
- String of leading zeros
-
leading
Return leading characters to pad out the byte offset to field width.- Parameters:
os- Byte offsetwidth- Field width- Returns:
- String of leading zeros
-
leading
Return leading characters to pad out the byte offset to field width.- Parameters:
os- Byte offsetwidth- Field widthpad- Padding character- Returns:
- String of leading characters
-
leading
Return leading characters to pad out the byte offset to field width.- Parameters:
os- Byte offsetwidth- Field widthpad- Padding character- Returns:
- String of leading characters
-
leading
Return leading characters to pad out the string to field width.- Parameters:
s- Stringwidth- Field width- Returns:
- String of leading characters
-
leading
Return leading characters to pad out the string to field width.- Parameters:
s- Stringwidth- Field widthpad- Padding character- Returns:
- String of leading characters
-
readChars
Read and display a sequence of characters.- Parameters:
stream- Data input streamlength- Number of characters- Returns:
- Character string
- Throws:
IOException
-