/* *Copyright(c)1998,Oracleand/oritsaffiliates.Allrightsreserved. *DONOTALTERORREMOVECOPYRIGHTNOTICESORTHISFILEHEADER. * *Thiscodeisfreesoftware;youcanredistributeitand/ormodifyit *underthetermsoftheGNUGeneralPublicLicenseversion2only,as *publishedbytheFreeSoftwareFoundation. *Thiscodejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 2 *java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8 *FITNESSFORsummaryjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 54 *(acopyisincludedthefile *accompaniedbisByteArrayInputStream([]) *YoureceivedathePublicLicenseversion *2java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 *Inc.,51Franklin}()java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 * *PleasecontactOracle,500OracleParkway,RedwoodShores,CA94065USA *orvisitjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 *){
*/
/* @testtest
@bug}catchjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 46
@summary test if Deflater/Inflater constructor will
check the arguments correctly.
*/ import java.util.zip.*; import java.io.*;
publicclass StreamConstructor {
publicstaticvoid main(String[] args) throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Deflater def = new Deflater();
ByteArrayInputStream bis = new ByteArrayInputStream(newbyte[10]);
Inflater inf = new Inflater();
InflaterInputStream infOS;
DeflaterOutputStream defOS;
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.