java.io

Class UnsupportedEncodingException

Implemented Interfaces:
Serializable

public class UnsupportedEncodingException
extends IOException

The Character Encoding is not supported.
Since:
JDK1.1
See Also:
Serialized Form

Constructor Summary

UnsupportedEncodingException()
Constructs an UnsupportedEncodingException without a detail message.
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

UnsupportedEncodingException

public UnsupportedEncodingException()
Constructs an UnsupportedEncodingException without a detail message.
Usages and Demos :

View More Examples of UnsupportedEncodingException()
   1:         if (!Charset.isSupported(charset)) {
   2:             throw new UnsupportedEncodingException();
   3:         }
   4:         return charset;
   5:     }

View Full Code Here
   1: 
   2:                 throw new UnsupportedEncodingException();
   3: 
   4:         ...
   5: 
   6:             throw new UnsupportedEncodingException();
   7: 
   8:         default:
   9:             break;

View Full Code Here
   1:         if (!open_enc.equals(enc)) {
   2:             throw new UnsupportedEncodingException();
   3:         }
   4:         return super.open(out, open_enc);
   5:     }

View Full Code Here
   1:         if (!open_enc.equals(enc)) {
   2:             throw new UnsupportedEncodingException();
   3:         }
   4:         return super.open(out, open_enc);
   5:     }

View Full Code Here
   1:         {
   2:             throw new UnsupportedEncodingException();
   3:         }
   4:         ...
   5:         {
   6:             throw new UnsupportedEncodingException();
   7:         }
   8:         ...
   9:         {
  10:             throw new UnsupportedEncodingException();
  11:         }

View Full Code Here

UnsupportedEncodingException

public UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message.
Parameters:
s - Describes the reason for the exception.
Usages and Demos :

View More Examples of UnsupportedEncodingException(String s)
   1:                 } catch (UnsupportedCharsetException e) {
   2:                     throw new UnsupportedEncodingException(encoding);
   3:                 }
   4:                 return new BufferedWriter(new OutputStreamWriter(outStream,charset));
   5:             }

View Full Code Here
   1:     else {
   2:       throw new UnsupportedEncodingException(javaEncoding);
   3:     }
   4:         ...
   5:       } catch (java.nio.charset.UnsupportedCharsetException e) {
   6:     throw new UnsupportedEncodingException(e.getMessage());
   7:       }
   8:     }

View Full Code Here
   1:         } catch (Exception ex) {
   2:             throw new UnsupportedEncodingException(ex.toString());
   3:         }
   4:         ...
   5:         } catch (Exception ex) {
   6:             throw new UnsupportedEncodingException(ex.toString());
   7:         }
   8:         String content = (String) object;
   9:         os.write(content, 0, content.length());

View Full Code Here
   1:     } catch (IllegalArgumentException iex) {
   2:         throw new UnsupportedEncodingException(enc);
   3:     }
   4:         ...
   5:     } catch (IllegalArgumentException iex) {
   6:         throw new UnsupportedEncodingException(enc);
   7:     }
   8: 
   9:     String s = (String)obj;

View Full Code Here
   1:             }
   2:             throw new UnsupportedEncodingException(encoding);
   3:         }
   4:         if ((eInfo = (EncodingInfo)_encodings.get(jName)) != null)
   5:             return eInfo;

View Full Code Here