/*
- * Copyright 2011 BitMeister Inc.
+ * Copyright 2011-2012 BitMeister Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import static jp.bitmeister.asn1.codec.xer.XerConstants.BOOLEAN_FALSE;
import static jp.bitmeister.asn1.codec.xer.XerConstants.BOOLEAN_TRUE;
import static jp.bitmeister.asn1.codec.xer.XerConstants.REAL_MINUS_INFINITY;
+import static jp.bitmeister.asn1.codec.xer.XerConstants.REAL_NAN;
import static jp.bitmeister.asn1.codec.xer.XerConstants.REAL_PLUS_INFINITY;
import java.io.InputStream;
* <p>
* {@code XerDecoder} is an implementation of {@code ASN1Decoder}. It reads a
* number of bytes from an {@code InputStream} that is specified when a decoder
- * is instantiated, and decodes them to an ASN.1 data with XML Encoding Rules
+ * is instantiated, and decodes them to an ASN.1 data using XML Encoding Rules
* (XER).
* </p>
*
data.set(Double.POSITIVE_INFINITY);
} else if (qName.equals(REAL_MINUS_INFINITY)) {
data.set(Double.NEGATIVE_INFINITY);
+ } else if (qName.equals(REAL_NAN)) {
+ data.set(Double.NaN);
}
}