Explorar el Código

//test

private_deployment
xhxu hace 2 años
padre
commit
19950714c8
Se han modificado 1 ficheros con 4 adiciones y 6 borrados
  1. +4
    -6
      suimangVideo/src/main/java/com/iformall/language/LanguageDetect.java

+ 4
- 6
suimangVideo/src/main/java/com/iformall/language/LanguageDetect.java Ver fichero

@@ -29,12 +29,10 @@ public class LanguageDetect {
Resource[] resources = resolver.getResources("classpath:profiles/*");
for (Resource resource:resources) {
try {
if(resource.getFile().isFile()){
InputStream inputStream = resource.getInputStream();
byte[] bytes = new byte[inputStream.available()];
inputStream.read(bytes);
profile.add(new String(bytes));
}
InputStream inputStream = resource.getInputStream();
byte[] bytes = new byte[inputStream.available()];
inputStream.read(bytes);
profile.add(new String(bytes));
} catch (IOException e) {
e.printStackTrace();
}


Cargando…
Cancelar
Guardar