pool = new ArrayList<>();
22 | protected XmlPullParserFactory factory;
23 |
24 |
25 | public XmlPullParserPool() throws XmlPullParserException {
26 | this(XmlPullParserFactory.newInstance());
27 | }
28 |
29 | public XmlPullParserPool(XmlPullParserFactory factory) {
30 | if (factory == null) throw new IllegalArgumentException();
31 | this.factory = factory;
32 | }
33 |
34 | // simple inline test
35 | public static void main(String[] args) throws Exception {
36 | //XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
37 | //XmlPullParserPool pool = new XmlPullParserPool(factory);
38 | XmlPullParserPool pool = new XmlPullParserPool();
39 | XmlPullParser p1 = pool.getPullParserFromPool();
40 | pool.returnPullParserToPool(p1);
41 | XmlPullParser p2 = pool.getPullParserFromPool();
42 | //assert p1 == p2;
43 | if (p1 != p2) throw new RuntimeException();
44 | pool.returnPullParserToPool(p2);
45 | System.out.println(pool.getClass() + " OK");
46 | }
47 |
48 | protected XmlPullParser newParser() throws XmlPullParserException {
49 | return factory.newPullParser();
50 | }
51 |
52 | public XmlPullParser getPullParserFromPool()
53 | throws XmlPullParserException {
54 | XmlPullParser pp = null;
55 | if (!pool.isEmpty()) {
56 | synchronized (pool) {
57 | if (!pool.isEmpty()) {
58 | pp = (XmlPullParser) pool.remove(pool.size() - 1);
59 | }
60 | }
61 | }
62 | if (pp == null) {
63 | pp = newParser();
64 | //System.err.println("new parser instance created pp="+pp);
65 | }
66 | return pp;
67 | }
68 |
69 | public void returnPullParserToPool(XmlPullParser pp) {
70 | if (pp == null) throw new IllegalArgumentException();
71 | synchronized (pool) {
72 | pool.add(pp);
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/wrapper/perftest/Driver.java:
--------------------------------------------------------------------------------
1 | /* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | // for license see accompanying LICENSE_TESTS.txt file (available also at http://www.xmlpull.org)
3 |
4 | package com.mcal.xmlpull.v1.wrapper.perftest;
5 |
6 | //import junit.framework.Test;
7 |
8 | import com.mcal.xmlpull.v1.util.XmlPullUtil;
9 | import com.mcal.xmlpull.v1.wrapper.XmlPullParserWrapper;
10 | import com.mcal.xmlpull.v1.wrapper.XmlPullWrapperFactory;
11 | import org.xmlpull.v1.XmlPullParser;
12 | import org.xmlpull.v1.XmlPullParserFactory;
13 |
14 | import java.io.StringReader;
15 |
16 | /**
17 | * Test overhead of wrapper approach.
18 | *
19 | * @author Aleksander Slominski
20 | */
21 | public class Driver {
22 |
23 | public static void main(String[] args) throws Exception {
24 | final int PASSES = 20;
25 | final int REPEAT = 5 * 10000;
26 |
27 | System.err.println("starting tests with PASSES=" + PASSES + " REPEAT=" + REPEAT);
28 | long startDirect = -1, endDirect = -1;
29 | long startStaticWrap = -1, endStaticWrap = -1;
30 | XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
31 | factory.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
32 | XmlPullWrapperFactory staticWrapperFactory = XmlPullWrapperFactory.newInstance(factory);
33 |
34 | // multiple passes necessary to do some warmup to remove HotSpot influences ...
35 | for (int count = 0; count < PASSES; count++) {
36 | System.err.println("pass " + (count + 1) + " of " + PASSES);
37 | startDirect = System.currentTimeMillis();
38 |
39 | XmlPullParser pp = factory.newPullParser();
40 | for (int i = 0; i < REPEAT; i++) {
41 | StringReader sr = new StringReader("world!");
42 | pp.setInput(sr);
43 | pp.nextTag();
44 | pp.require(XmlPullParser.START_TAG, null, "hello");
45 | pp.next();
46 | XmlPullUtil.nextEndTag(pp);
47 | pp.require(XmlPullParser.END_TAG, null, "hello");
48 | }
49 | endDirect = System.currentTimeMillis();
50 | System.err.println("direct test took " + (endDirect - startDirect) / 1000.0 + " seconds");
51 |
52 | startStaticWrap = System.currentTimeMillis();
53 | XmlPullParserWrapper spw = staticWrapperFactory.newPullParserWrapper();
54 | for (int i = 0; i < REPEAT; i++) {
55 | StringReader sr = new StringReader("world!");
56 | spw.setInput(sr);
57 | spw.nextTag();
58 | spw.require(XmlPullParser.START_TAG, null, "hello");
59 | spw.next();
60 | spw.nextEndTag();
61 | spw.require(XmlPullParser.END_TAG, null, "hello");
62 | }
63 | endStaticWrap = System.currentTimeMillis();
64 | System.err.println("static wrap test took " + (endStaticWrap - startStaticWrap) / 1000.0 + " seconds");
65 |
66 |
67 | }
68 |
69 | double directSecs = (endDirect - startDirect) / 1000.0;
70 | //System.err.println("direct test took "+directSecs+" seconds");
71 |
72 | {
73 | double staticWrapSecs = (endStaticWrap - startStaticWrap) / 1000.0;
74 | double staticSpeedup = staticWrapSecs / directSecs;
75 | double percent = Math.round((staticSpeedup - 1) * 100.0 * 100.0) / 100.0;
76 | System.err.println("speedup when using direct over static wrap " + staticSpeedup + " (" + percent + "%)");
77 | }
78 |
79 | System.err.println("finished");
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/xmlrpc/XmlRpcParser.java:
--------------------------------------------------------------------------------
1 | /* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | // for license please see accompanying LICENSE.txt file (available also at http://www.xmlpull.org/)
3 |
4 | package com.mcal.xmlpull.v1.xmlrpc;
5 |
6 |
7 | import org.jetbrains.annotations.NotNull;
8 | import org.xmlpull.v1.XmlPullParser;
9 | import org.xmlpull.v1.XmlPullParserException;
10 |
11 | import java.io.IOException;
12 |
13 | /**
14 | * @author Stefan Haustein
15 | *
16 | * A simple XML RPC parser based on the XML PULL API,
17 | * intended to show the XMLPULL and KXml2 API usage with
18 | * a real application example.
19 | *
20 | *
21 | * - For the XML RPC specification, please refer to
22 | * http://www.xmlrpc.com/spec
23 | * - For the XmlPullParser API specification, please refer to
24 | * xmlpull.org
25 | * - For information about kXML 2, please refer to
26 | * kxml.org
27 | *
28 | */
29 |
30 | public class XmlRpcParser extends XmlRpcParserME {
31 |
32 | public XmlRpcParser(XmlPullParser parser) {
33 | super(parser);
34 | }
35 |
36 | protected Object parseType(@NotNull String name) throws IOException, XmlPullParserException {
37 | if (name.equals("double")) {
38 | return Double.valueOf(parser.nextText());
39 | } else {
40 | return super.parseType(name);
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/xsd/XsdException.java:
--------------------------------------------------------------------------------
1 | /* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | // for license please see accompanying LICENSE.txt file (available also at http://www.xmlpull.org/)
3 |
4 | package com.mcal.xmlpull.v1.xsd;
5 |
6 | /**
7 | * This exception is thrown to signal XB1 related exceptions.
8 | *
9 | * @author Aleksander Slominski
10 | */
11 | public class XsdException extends RuntimeException {
12 | protected Throwable detail;
13 | //protected int row = -1;
14 | //protected int column = -1;
15 |
16 | public XsdException(String s) {
17 | super(s);
18 | }
19 |
20 |
21 | public XsdException(String s, Throwable thrwble) {
22 | super(s);
23 | this.detail = thrwble;
24 | }
25 |
26 |
27 | public Throwable getDetail() {
28 | return detail;
29 | }
30 | // public void setDetail(Throwable cause) { this.detail = cause; }
31 |
32 | public String getMessage() {
33 | if (detail == null)
34 | return super.getMessage();
35 | else
36 | return super.getMessage() + "; nested exception is: \n\t"
37 | + detail.getMessage();
38 | }
39 |
40 |
41 | public void printStackTrace(java.io.PrintStream ps) {
42 | if (detail == null) {
43 | super.printStackTrace(ps);
44 | } else {
45 | synchronized (ps) {
46 | //ps.println(this);
47 | ps.println(super.getMessage() + "; nested exception is:");
48 | detail.printStackTrace(ps);
49 | }
50 | }
51 | }
52 |
53 | public void printStackTrace() {
54 | printStackTrace(System.err);
55 | }
56 |
57 | public void printStackTrace(java.io.PrintWriter pw) {
58 | if (detail == null) {
59 | super.printStackTrace(pw);
60 | } else {
61 | synchronized (pw) {
62 | //pw.println(this);
63 | pw.println(super.getMessage() + "; nested exception is:");
64 | detail.printStackTrace(pw);
65 | }
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/xsd/impl/base64/Base64DecodingException.java:
--------------------------------------------------------------------------------
1 | /* -*- mode: Java; c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | /*
3 | * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
4 | *
5 | * This software is open source. See the bottom of this file for the licence.
6 | *
7 | * $Id: Base64DecodingException.java,v 1.4 2003/04/06 00:04:25 aslom Exp $
8 | */
9 |
10 | package com.mcal.xmlpull.v1.xsd.impl.base64;
11 |
12 |
13 | /**
14 | * There was exception in BASE64 decoding.
15 | *
16 | * @author Aleksander Slominski
17 | * @version $Revision: 1.4 $ $Date: 2003/04/06 00:04:25 $ (GMT)
18 | */
19 |
20 | public class Base64DecodingException extends RuntimeException {
21 | public Base64DecodingException(String msg) {
22 | super(msg);
23 | }
24 | }
25 |
26 | /*
27 | * Indiana University Extreme! Lab Software License, Version 1.2
28 | *
29 | * Copyright (c) 2002-2004 The Trustees of Indiana University.
30 | * All rights reserved.
31 | *
32 | * Redistribution and use in source and binary forms, with or without
33 | * modification, are permitted provided that the following conditions are
34 | * met:
35 | *
36 | * 1) All redistributions of source code must retain the above
37 | * copyright notice, the list of authors in the original source
38 | * code, this list of conditions and the disclaimer listed in this
39 | * license;
40 | *
41 | * 2) All redistributions in binary form must reproduce the above
42 | * copyright notice, this list of conditions and the disclaimer
43 | * listed in this license in the documentation and/or other
44 | * materials provided with the distribution;
45 | *
46 | * 3) Any documentation included with all redistributions must include
47 | * the following acknowledgement:
48 | *
49 | * "This product includes software developed by the Indiana
50 | * University Extreme! Lab. For further information please visit
51 | * http://www.extreme.indiana.edu/"
52 | *
53 | * Alternatively, this acknowledgment may appear in the software
54 | * itself, and wherever such third-party acknowledgments normally
55 | * appear.
56 | *
57 | * 4) The name "Indiana University" or "Indiana University
58 | * Extreme! Lab" shall not be used to endorse or promote
59 | * products derived from this software without prior written
60 | * permission from Indiana University. For written permission,
61 | * please contact http://www.extreme.indiana.edu/.
62 | *
63 | * 5) Products derived from this software may not use "Indiana
64 | * University" name nor may "Indiana University" appear in their name,
65 | * without prior written permission of the Indiana University.
66 | *
67 | * Indiana University provides no reassurances that the source code
68 | * provided does not infringe the patent or any other intellectual
69 | * property rights of any other entity. Indiana University disclaims any
70 | * liability to any recipient for claims brought by any other entity
71 | * based on infringement of intellectual property rights or otherwise.
72 | *
73 | * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
74 | * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
75 | * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
76 | * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
77 | * OTHER PROPRIETARY RIGHTS. INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
78 | * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
79 | * DOORS", "WORMS", OR OTHER HARMFUL CODE. LICENSEE ASSUMES THE ENTIRE
80 | * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
81 | * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
82 | * SOFTWARE.
83 | */
84 |
85 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/xsd/impl/base64/Base64DecodingState.java:
--------------------------------------------------------------------------------
1 | /* -*- mode: Java; c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | /*
3 | * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
4 | *
5 | * This software is open source. See the bottom of this file for the licence.
6 | *
7 | * $Id: Base64DecodingState.java,v 1.4 2003/04/06 00:04:25 aslom Exp $
8 | */
9 |
10 | package com.mcal.xmlpull.v1.xsd.impl.base64;
11 |
12 | /**
13 | * @author Aleksander Slominski
14 | * @version $Revision: 1.4 $ $Date: 2003/04/06 00:04:25 $ (GMT)
15 | */
16 |
17 | public class Base64DecodingState {
18 |
19 | // codec state - when operated in streaming mode
20 | byte[] input = new byte[4];
21 | int inputEnd;
22 |
23 | public Base64DecodingState() {
24 | }
25 |
26 | }
27 |
28 | /*
29 | * Indiana University Extreme! Lab Software License, Version 1.2
30 | *
31 | * Copyright (c) 2002-2004 The Trustees of Indiana University.
32 | * All rights reserved.
33 | *
34 | * Redistribution and use in source and binary forms, with or without
35 | * modification, are permitted provided that the following conditions are
36 | * met:
37 | *
38 | * 1) All redistributions of source code must retain the above
39 | * copyright notice, the list of authors in the original source
40 | * code, this list of conditions and the disclaimer listed in this
41 | * license;
42 | *
43 | * 2) All redistributions in binary form must reproduce the above
44 | * copyright notice, this list of conditions and the disclaimer
45 | * listed in this license in the documentation and/or other
46 | * materials provided with the distribution;
47 | *
48 | * 3) Any documentation included with all redistributions must include
49 | * the following acknowledgement:
50 | *
51 | * "This product includes software developed by the Indiana
52 | * University Extreme! Lab. For further information please visit
53 | * http://www.extreme.indiana.edu/"
54 | *
55 | * Alternatively, this acknowledgment may appear in the software
56 | * itself, and wherever such third-party acknowledgments normally
57 | * appear.
58 | *
59 | * 4) The name "Indiana University" or "Indiana University
60 | * Extreme! Lab" shall not be used to endorse or promote
61 | * products derived from this software without prior written
62 | * permission from Indiana University. For written permission,
63 | * please contact http://www.extreme.indiana.edu/.
64 | *
65 | * 5) Products derived from this software may not use "Indiana
66 | * University" name nor may "Indiana University" appear in their name,
67 | * without prior written permission of the Indiana University.
68 | *
69 | * Indiana University provides no reassurances that the source code
70 | * provided does not infringe the patent or any other intellectual
71 | * property rights of any other entity. Indiana University disclaims any
72 | * liability to any recipient for claims brought by any other entity
73 | * based on infringement of intellectual property rights or otherwise.
74 | *
75 | * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
76 | * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
77 | * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
78 | * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
79 | * OTHER PROPRIETARY RIGHTS. INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
80 | * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
81 | * DOORS", "WORMS", OR OTHER HARMFUL CODE. LICENSEE ASSUMES THE ENTIRE
82 | * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
83 | * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
84 | * SOFTWARE.
85 | */
86 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/xsd/impl/base64/Base64EncodingException.java:
--------------------------------------------------------------------------------
1 | /* -*- mode: Java; c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | /*
3 | * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
4 | *
5 | * This software is open source. See the bottom of this file for the licence.
6 | *
7 | * $Id: Base64EncodingException.java,v 1.4 2003/04/06 00:04:25 aslom Exp $
8 | */
9 |
10 | package com.mcal.xmlpull.v1.xsd.impl.base64;
11 |
12 | /**
13 | * @author Aleksander Slominski
14 | * @version $Revision: 1.4 $ $Date: 2003/04/06 00:04:25 $ (GMT)
15 | */
16 |
17 | public class Base64EncodingException extends RuntimeException {
18 | public Base64EncodingException(String msg) {
19 | super(msg);
20 | }
21 | }
22 |
23 | /*
24 | * Indiana University Extreme! Lab Software License, Version 1.2
25 | *
26 | * Copyright (c) 2002-2004 The Trustees of Indiana University.
27 | * All rights reserved.
28 | *
29 | * Redistribution and use in source and binary forms, with or without
30 | * modification, are permitted provided that the following conditions are
31 | * met:
32 | *
33 | * 1) All redistributions of source code must retain the above
34 | * copyright notice, the list of authors in the original source
35 | * code, this list of conditions and the disclaimer listed in this
36 | * license;
37 | *
38 | * 2) All redistributions in binary form must reproduce the above
39 | * copyright notice, this list of conditions and the disclaimer
40 | * listed in this license in the documentation and/or other
41 | * materials provided with the distribution;
42 | *
43 | * 3) Any documentation included with all redistributions must include
44 | * the following acknowledgement:
45 | *
46 | * "This product includes software developed by the Indiana
47 | * University Extreme! Lab. For further information please visit
48 | * http://www.extreme.indiana.edu/"
49 | *
50 | * Alternatively, this acknowledgment may appear in the software
51 | * itself, and wherever such third-party acknowledgments normally
52 | * appear.
53 | *
54 | * 4) The name "Indiana University" or "Indiana University
55 | * Extreme! Lab" shall not be used to endorse or promote
56 | * products derived from this software without prior written
57 | * permission from Indiana University. For written permission,
58 | * please contact http://www.extreme.indiana.edu/.
59 | *
60 | * 5) Products derived from this software may not use "Indiana
61 | * University" name nor may "Indiana University" appear in their name,
62 | * without prior written permission of the Indiana University.
63 | *
64 | * Indiana University provides no reassurances that the source code
65 | * provided does not infringe the patent or any other intellectual
66 | * property rights of any other entity. Indiana University disclaims any
67 | * liability to any recipient for claims brought by any other entity
68 | * based on infringement of intellectual property rights or otherwise.
69 | *
70 | * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
71 | * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
72 | * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
73 | * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
74 | * OTHER PROPRIETARY RIGHTS. INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
75 | * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
76 | * DOORS", "WORMS", OR OTHER HARMFUL CODE. LICENSEE ASSUMES THE ENTIRE
77 | * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
78 | * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
79 | * SOFTWARE.
80 | */
81 |
--------------------------------------------------------------------------------
/xpp3/src/main/java/com/mcal/xmlpull/v1/xsd/impl/base64/Base64EncodingState.java:
--------------------------------------------------------------------------------
1 | /* -*- mode: Java; c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/
2 | /*
3 | * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
4 | *
5 | * This software is open source. See the bottom of this file for the licence.
6 | *
7 | * $Id: Base64EncodingState.java,v 1.4 2003/04/06 00:04:25 aslom Exp $
8 | */
9 |
10 | package com.mcal.xmlpull.v1.xsd.impl.base64;
11 |
12 | /**
13 | * @author Aleksander Slominski
14 | * @version $Revision: 1.4 $ $Date: 2003/04/06 00:04:25 $ (GMT)
15 | */
16 |
17 | public class Base64EncodingState {
18 | int[] output = new int[3];
19 | int outputEnd;
20 |
21 | public Base64EncodingState() {
22 | }
23 | }
24 |
25 | /*
26 | * Indiana University Extreme! Lab Software License, Version 1.2
27 | *
28 | * Copyright (c) 2002-2004 The Trustees of Indiana University.
29 | * All rights reserved.
30 | *
31 | * Redistribution and use in source and binary forms, with or without
32 | * modification, are permitted provided that the following conditions are
33 | * met:
34 | *
35 | * 1) All redistributions of source code must retain the above
36 | * copyright notice, the list of authors in the original source
37 | * code, this list of conditions and the disclaimer listed in this
38 | * license;
39 | *
40 | * 2) All redistributions in binary form must reproduce the above
41 | * copyright notice, this list of conditions and the disclaimer
42 | * listed in this license in the documentation and/or other
43 | * materials provided with the distribution;
44 | *
45 | * 3) Any documentation included with all redistributions must include
46 | * the following acknowledgement:
47 | *
48 | * "This product includes software developed by the Indiana
49 | * University Extreme! Lab. For further information please visit
50 | * http://www.extreme.indiana.edu/"
51 | *
52 | * Alternatively, this acknowledgment may appear in the software
53 | * itself, and wherever such third-party acknowledgments normally
54 | * appear.
55 | *
56 | * 4) The name "Indiana University" or "Indiana University
57 | * Extreme! Lab" shall not be used to endorse or promote
58 | * products derived from this software without prior written
59 | * permission from Indiana University. For written permission,
60 | * please contact http://www.extreme.indiana.edu/.
61 | *
62 | * 5) Products derived from this software may not use "Indiana
63 | * University" name nor may "Indiana University" appear in their name,
64 | * without prior written permission of the Indiana University.
65 | *
66 | * Indiana University provides no reassurances that the source code
67 | * provided does not infringe the patent or any other intellectual
68 | * property rights of any other entity. Indiana University disclaims any
69 | * liability to any recipient for claims brought by any other entity
70 | * based on infringement of intellectual property rights or otherwise.
71 | *
72 | * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
73 | * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
74 | * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
75 | * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
76 | * OTHER PROPRIETARY RIGHTS. INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
77 | * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
78 | * DOORS", "WORMS", OR OTHER HARMFUL CODE. LICENSEE ASSUMES THE ENTIRE
79 | * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
80 | * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
81 | * SOFTWARE.
82 | */
83 |
--------------------------------------------------------------------------------