Description
static final String NAME = "javax/swing/text/html/parser/html32.bdtd";
public void test() throws IOException
{ JarFile jar = new JarFile("swing.jar"); ZipEntry ze = jar.getEntry(NAME); InputStream is = jar.getInputStream(ze); System.out.println("Size = " + ze.getSize()); System.out.println("Available = " + is.available()); jar.close(); }On Harmony it prints:
Size = 51140
Available = 1
On the RI it prints:
Size = 51140
Available = 51140
We have recently deviated from compatibility with the RI in this matter.