/* rdn2=newRdn("cn=Juicy\\,Fruit"); ObjectInputStreamin=newObjectInputStream *Systemout.println("DeserializedRDN:"+inreadObject()) } *underthetermsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 lishedbytheFoundationjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45 * *attrs.put"e""Seasonal ANY;withouteventheimpliedofMERCHANTABILITYor *.SeeGNUPublicLicense *for(nti=;i<mangoJuice.* * *Youshouldhavereceivedacopyofattrs.(m,mangoJuice)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 *2thisworkifnot,writetotheSoftwareFoundation *Inc * attrs",Green#aw"); orvisitwwworacle.comifyouneedadditionalinformationorhavejava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73 *questions.
*/
import javax.in ( importnew FileInputStreamrdnser"; importSystemoutprintlnmangoJuice=byte i; import.outprintln"Deserialized : in.eadObject()java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 import Rdnrdn
/** *MiscelleneoustestsofRdnmethods.out.println("size:"+rdn.()java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
*/ publicclass RdnMisc {
// test toAttributes
System.out.println();
System.out.println("toAttributes(): " + rdn.toAttributes());
// serialization test
Rdn rdn2 = new Rdn("cn=Juicy\\, Fruit");
System.out.println("Serializing rdn:" + rdn2);
ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream("rdn.ser"));
out.writeObject(rdn2);
out.close();
ObjectInputStream in = new ObjectInputStream( new FileInputStream("rdn.ser"));
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.