< prev index next >

test/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java

Print this page




 187     }
 188 
 189     public void setEncoding(String encoding) {
 190         enc = encoding;
 191     }
 192 }
 193 
 194 class DOMErrorHandlerImpl implements DOMErrorHandler {
 195     boolean NoOutputSpecifiedErrorReceived = false;
 196     boolean WrongEncodingErrorReceived = false;
 197 
 198     public boolean handleError(DOMError error) {
 199         if ("no-output-specified".equalsIgnoreCase(error.getType())) {
 200             NoOutputSpecifiedErrorReceived = true;
 201         } else if ("unsupported-encoding".equalsIgnoreCase(error.getType())) {
 202             WrongEncodingErrorReceived = true;
 203         }
 204         return true;
 205     }
 206 }
 207 


 187     }
 188 
 189     public void setEncoding(String encoding) {
 190         enc = encoding;
 191     }
 192 }
 193 
 194 class DOMErrorHandlerImpl implements DOMErrorHandler {
 195     boolean NoOutputSpecifiedErrorReceived = false;
 196     boolean WrongEncodingErrorReceived = false;
 197 
 198     public boolean handleError(DOMError error) {
 199         if ("no-output-specified".equalsIgnoreCase(error.getType())) {
 200             NoOutputSpecifiedErrorReceived = true;
 201         } else if ("unsupported-encoding".equalsIgnoreCase(error.getType())) {
 202             WrongEncodingErrorReceived = true;
 203         }
 204         return true;
 205     }
 206 }

< prev index next >