add toString to CompressedString to show when logging it

This commit is contained in:
kimchy 2010-12-23 07:45:04 +02:00
parent 3b30930460
commit 800b7f39bd
1 changed files with 8 additions and 0 deletions

View File

@ -87,4 +87,12 @@ public class CompressedString implements Streamable {
@Override public int hashCode() {
return bytes != null ? Arrays.hashCode(bytes) : 0;
}
@Override public String toString() {
try {
return string();
} catch (IOException e) {
return "_na_";
}
}
}