fix broken compilation. removed a reference to a class from the scratchpad.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@574589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7356dd361c
commit
b65d864b2c
@ -20,7 +20,6 @@ import org.apache.poi.util.HexDump;
|
||||
import org.apache.poi.util.LittleEndian;
|
||||
import org.apache.poi.util.POILogFactory;
|
||||
import org.apache.poi.util.POILogger;
|
||||
import org.apache.poi.hslf.blip.Metafile;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Rectangle;
|
||||
@ -101,22 +100,6 @@ public class EscherPictBlip
|
||||
return bytesAfterHeader + HEADER_SIZE;
|
||||
}
|
||||
|
||||
private byte[] read(byte[] data, int pos) throws IOException {
|
||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(data);
|
||||
Metafile.Header header = new Metafile.Header();
|
||||
header.read(data, pos);
|
||||
bis.skip(pos + header.getSize());
|
||||
InflaterInputStream inflater = new InflaterInputStream( bis );
|
||||
byte[] chunk = new byte[4096];
|
||||
int count;
|
||||
while ((count = inflater.read(chunk)) >=0 ) {
|
||||
out.write(chunk,0,count);
|
||||
}
|
||||
inflater.close();
|
||||
return out.toByteArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the record to an existing byte array.
|
||||
*
|
||||
|
@ -42,7 +42,7 @@ public class TestHSSFPictureData extends TestCase{
|
||||
static String cwd = System.getProperty("HSSF.testdata.path");
|
||||
|
||||
public void testPictures() throws IOException {
|
||||
FileInputStream is = new FileInputStream(new File(cwd, "SimpleWithImages-win.xls"));
|
||||
FileInputStream is = new FileInputStream(new File(cwd, "SimpleWithImages.xls"));
|
||||
HSSFWorkbook wb = new HSSFWorkbook(is);
|
||||
is.close();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user