poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject cvs commit: jakarta-poi/src/testcases/org/apache/poi/hpsf/basic TestWrite.java
Date Mon, 01 Sep 2003 18:54:23 GMT
klute       2003/09/01 11:54:23

  Modified:    src/testcases/org/apache/poi/hpsf/basic TestWrite.java
  Log:
  
  
  Revision  Changes    Path
  1.3       +4 -7      jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java
  
  Index: TestWrite.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hpsf/basic/TestWrite.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestWrite.java	1 Sep 2003 05:50:48 -0000	1.2
  +++ TestWrite.java	1 Sep 2003 18:54:23 -0000	1.3
  @@ -211,11 +211,7 @@
           si.setProperty(p);
           si.setProperty(PropertyIDMap.PID_TITLE, Variant.VT_LPSTR, TITLE);
   
  -        final ByteArrayOutputStream psStream = new ByteArrayOutputStream();
  -        ps.write(psStream);
  -        psStream.close();
  -        final byte[] streamData = psStream.toByteArray();
  -        poiFs.createDocument(new ByteArrayInputStream(streamData),
  +        poiFs.createDocument(ps.toInputStream(),
                                SummaryInformation.DEFAULT_STREAM_NAME);
           poiFs.writeFilesystem(out);
           out.close();
  @@ -225,7 +221,8 @@
           final POIFSReader r = new POIFSReader();
           r.registerListener(new POIFSReaderListener()
               {
  -                public void processPOIFSReaderEvent(final POIFSReaderEvent event)
  +                public void processPOIFSReaderEvent
  +                    (final POIFSReaderEvent event)
                   {
                       try
                       {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message