Package lejos.charset

Examples of lejos.charset.Latin1Encoder


  private static CharsetEncoder getCoder(String charset) throws UnsupportedEncodingException
  {
    //TODO use constants or something else
    charset = charset.toLowerCase();   
    if (charset.equals("iso-8859-1") || charset.equals("latin1"))     
      return new Latin1Encoder();
    if (charset.equals("utf-8") || charset.equals("utf8"))     
      return new UTF8Encoder();
   
    throw new UnsupportedEncodingException("unsupported encoding "+charset);
  }
View Full Code Here


   * @deprecated use {@link OutputStreamWriter} instead.
   */
  @Deprecated
  public BufferedWriter(OutputStream os)
  {
    this(new LejosOutputStreamWriter(os, new Latin1Encoder(), 32));
  }
View Full Code Here

TOP

Related Classes of lejos.charset.Latin1Encoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.