ERROR Readline Java File UTF8

Este error ocurre cuando se lee un archivo de texto guardado en sistemas operativos UNIX/LINUX en donde se guardan ciertos byte que le dan la codificación UTF-8, lo cual entorpece la comparación del método a byte[] incluya estos caracteres haciendo que una simple comparación de String sea distinta a lo esperado.

    /**
 * 
 * 
 * @param s string a remover caracter UTF8
 * @return 
 */
    private static String removeUTF8BOM(String s) {
        if (s.startsWith("\uFEFF")) {
            s = s.substring(1);
        }
        return s;
    } 

por ejemplo una aplicacion seria:
BufferedReader reader = new BufferedReader(new FileReader(files[i]));
                String header = readLine(reader);
                reader.close();

                String fileRegistroDebloqueo;
                String fileDesbloqueoDebloqueo;
                header = removeUTF8BOM(header);
                header = header.toUpperCase();
                if (header.equals("CUENTA")) {
                    compania = "CLARO";
                } else {
                    compania = extractCompany(files[i]);
                }
 


Oracle Linux BETA

OracleLinux-R7-U0-BETA-Everything-x86_64-dvd.iso (4,785,700,864 bytes)

The early development builds of Oracle Linux 7 are provided for testing purpose only.  The build includes two kernels: 
  • The Unbreakable Enterprise Kernel Release 3 Update 2 (beta release)
  • Red Hat compatible kernel. 
This beta release should not be used in production environments.

Linux Container packages for Unbreakable Enterprise Kernel Release 3 

Download  lxc-1.0.3-2.0.2.el7.x86_64.rpm (200,632 bytes)
Download  lxc-devel-1.0.3-2.0.2.el7.x86_64.rpm (17,452 bytes)
Download  lxc-libs-1.0.3-2.0.2.el7.x86_64.rpm(181,952 bytes)

CVE-2014-0160:  Security Update for openSSL (Heartbleed)

Oracle Linux is an open source operating system available under the GNU General Public License (GPL).  Oracle Linux is optimized for Oracle hardware and software and offers zero-downtime kernel updates with Ksplice and enterprise tracing and diagnostic capabilities with DTrace.  Oracle Linux is free to download, free to distribute and free to use.  All errata is freely available on public-yum.oracle.com


Please review Oracle Linux 7 Beta Release Notes for known issues prior to installation.  To learn more about Oracle Linux, visit www.oracle.com/linux

Documentation

Support

  • Please work with your Oracle team If you have any questions; or send us email at: oraclelinux-beta-info_ww@oracle.com
  • Oracle Bugzilla will be used to file bugs. You will need to request an Oracle Bugzilla account at http://bugzilla.oracle.com. When filing bugs, please choose the release Oracle Linux 7, and select the appropriate components to proceed.

 


nuevo Netbeans 8.0

Nuevo netbeans

Estoy probar las nuevas funcionalidades, en cuanto al soporte de plugins solo probe el plugins de YII, Maven, falta mucho por probar.

https://netbeans.org/downloads/

Problemas de activación WIFI6 en LG_OLED55CXPSA

  Mi experiencia con este TV  ah sido impecable hasta ahora, llevaba un uso normal y no tenia que usar la conexión por wifi ya que tengo una...