@@ -27,7 +27,7 @@ public class FromXmlParser
27
27
* String ("").
28
28
*/
29
29
public final static String DEFAULT_UNNAMED_TEXT_PROPERTY = "" ;
30
-
30
+
31
31
/**
32
32
* Enumeration that defines all togglable features for XML parsers.
33
33
* None defined so far (2.6), so just a placeholder.
@@ -319,8 +319,7 @@ public void addVirtualWrapping(Set<String> namesToWrap)
319
319
* the current event.
320
320
*/
321
321
@ Override
322
- public String getCurrentName ()
323
- throws IOException , JsonParseException
322
+ public String getCurrentName () throws IOException
324
323
{
325
324
// [JACKSON-395]: start markers require information from parent
326
325
String name ;
@@ -705,7 +704,7 @@ private void _updateState(JsonToken t)
705
704
*/
706
705
707
706
@ Override
708
- public String getText () throws IOException , JsonParseException
707
+ public String getText () throws IOException
709
708
{
710
709
if (_currToken == null ) {
711
710
return null ;
@@ -722,12 +721,12 @@ public String getText() throws IOException, JsonParseException
722
721
723
722
// @since 2.1
724
723
@ Override
725
- public final String getValueAsString () throws IOException , JsonParseException {
724
+ public final String getValueAsString () throws IOException {
726
725
return getValueAsString (null );
727
726
}
728
727
729
728
@ Override
730
- public String getValueAsString (String defValue ) throws IOException , JsonParseException
729
+ public String getValueAsString (String defValue ) throws IOException
731
730
{
732
731
JsonToken t = _currToken ;
733
732
if (t == null ) {
@@ -770,19 +769,19 @@ public String getValueAsString(String defValue) throws IOException, JsonParseExc
770
769
}
771
770
772
771
@ Override
773
- public char [] getTextCharacters () throws IOException , JsonParseException {
772
+ public char [] getTextCharacters () throws IOException {
774
773
String text = getText ();
775
774
return (text == null ) ? null : text .toCharArray ();
776
775
}
777
776
778
777
@ Override
779
- public int getTextLength () throws IOException , JsonParseException {
778
+ public int getTextLength () throws IOException {
780
779
String text = getText ();
781
780
return (text == null ) ? 0 : text .length ();
782
781
}
783
782
784
783
@ Override
785
- public int getTextOffset () throws IOException , JsonParseException {
784
+ public int getTextOffset () throws IOException {
786
785
return 0 ;
787
786
}
788
787
@@ -803,14 +802,13 @@ public boolean hasTextCharacters()
803
802
*/
804
803
805
804
@ Override
806
- public Object getEmbeddedObject () throws IOException , JsonParseException {
805
+ public Object getEmbeddedObject () throws IOException {
807
806
// no way to embed POJOs for now...
808
807
return null ;
809
808
}
810
809
811
810
@ Override
812
- public byte [] getBinaryValue (Base64Variant b64variant )
813
- throws IOException , JsonParseException
811
+ public byte [] getBinaryValue (Base64Variant b64variant ) throws IOException
814
812
{
815
813
if (_currToken != JsonToken .VALUE_STRING &&
816
814
(_currToken != JsonToken .VALUE_EMBEDDED_OBJECT || _binaryValue == null )) {
0 commit comments