----- Original Message ----- From: "Nick Burch" <[email protected]> To: "POI Users List" <[email protected]>; "Zachary Mitchell" <[email protected]>
Sent: Thursday, September 23, 2010 6:17 PM
Subject: Re: How do I use the reflection API to extract a field of type byte[]?


On Thu, 23 Sep 2010, Zachary Mitchell wrote:
HWPFDocument document = new HWPFDocument(fileSystem);
Field _dataStream = document.getClass().getDeclaredField("_dataStream");

_dataStream is protected. Just create your own subclass of HWPFDocument and you can get at it

But, if you're still interested in pictures, you'll want the PictureTable instead, rather than the raw stream

Nick

You can't get at it because the class is FINAL and won't be inherited from using extends.

???

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to