diff options
author | Andrew C. Oliver <acoliver@apache.org> | 2002-05-19 18:09:26 +0000 |
---|---|---|
committer | Andrew C. Oliver <acoliver@apache.org> | 2002-05-19 18:09:26 +0000 |
commit | 8ecb76b1428cdbd6fd67dcc11ad864cc23b85867 (patch) | |
tree | fe7e60a965054385cef2a1f66daa5ce717de81ea /src/contrib | |
parent | cbe0bd4caae97d2b221d89ff26c0c270d098dabb (diff) | |
download | poi-8ecb76b1428cdbd6fd67dcc11ad864cc23b85867.tar.gz poi-8ecb76b1428cdbd6fd67dcc11ad864cc23b85867.zip |
Finished my work converting HPSF to use the org.apache.poi.util.LittleEndian
implementation. ClassID and poibrowser/PropertySetDescriptorRendeder are probably broken. I couldn't figure out what ClassID is meaning to do someone else
who understands the code there will have to work on it.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352639 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/contrib')
-rw-r--r-- | src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java b/src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java index 32541ed0ce..522fa061a2 100644 --- a/src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java +++ b/src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java @@ -85,6 +85,9 @@ public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer final int row, final boolean hasFocus) { + + throw new RuntimeException("THIS FUNCTION BROKEN -- FIX IT"); +/* final PropertySetDescriptor d = (PropertySetDescriptor) ((DefaultMutableTreeNode) value).getUserObject(); final PropertySet ps = d.getPropertySet(); @@ -94,21 +97,22 @@ public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer text.setFont(new Font("Monospaced", Font.PLAIN, 10)); text.append(renderAsString(d)); text.append("\nByte order: " + - Codec.hexEncode(ps.getByteOrder().getBytes())); + Codec.hexEncode(ps.getByteOrder())); text.append("\nFormat: " + - Codec.hexEncode(ps.getFormat().getBytes())); + Codec.hexEncode(ps.getFormat())); text.append("\nOS version: " + - Codec.hexEncode(ps.getOSVersion().getBytes())); + Codec.hexEncode(ps.getOSVersion())); text.append("\nClass ID: " + - Codec.hexEncode(ps.getClassID().getBytes())); + Codec.hexEncode(ps.getClassID())); text.append("\nSection count: " + ps.getSectionCount()); text.append(sectionsToString(ps.getSections())); p.add(text); if (ps instanceof SummaryInformation) { +*/ /* Use the convenience methods. */ - final SummaryInformation si = (SummaryInformation) ps; +/* final SummaryInformation si = (SummaryInformation) ps; text.append("\n"); text.append("\nTitle: " + si.getTitle()); text.append("\nSubject: " + si.getSubject()); @@ -132,7 +136,7 @@ public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer if (selected) Util.invert(text); - return p; + return p;*/ } @@ -160,9 +164,12 @@ public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer */ protected String toString(final Section s, final String name) { + + throw new RuntimeException("THIS FUNCTION BROKEN -- FIX IT"); +/* final StringBuffer b = new StringBuffer(); b.append("\n" + name + " Format ID: "); - b.append(Codec.hexEncode(s.getFormatID().getBytes())); + b.append(Integer.toHexString(s.getFormatID())); b.append("\n" + name + " Offset: " + s.getOffset()); b.append("\n" + name + " Section size: " + s.getSize()); b.append("\n" + name + " Property count: " + s.getPropertyCount()); @@ -188,6 +195,7 @@ public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer b.append(value.toString()); } return b.toString(); +*/ } } |