Class RetrieveBinary

java.lang.Object
br.com.intersys.systextil.util.RetrieveBinary

public class RetrieveBinary extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    executar(File file)
    Lê o arquivo, e lança Exception se houver algum problema.
    static byte[]
    get(File file)
    Lê o arquivo, e convenientemente retorna nulo em vez de lançar uma Exception se houver algum problema.
    static byte[]
    get(String file)
    Lê o arquivo, e convenientemente retorna nulo em vez de lançar uma Exception se houver algum problema.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • executar

      public static byte[] executar(File file) throws FileNotFoundException
      Lê o arquivo, e lança Exception se houver algum problema.
      Returns:
      o conteúdo do arquivo
      Throws:
      FileNotFoundException - se o arquivo não puder ser lido
    • get

      public static byte[] get(File file)
      Lê o arquivo, e convenientemente retorna nulo em vez de lançar uma Exception se houver algum problema.
      Returns:
      o conteúdo do arquivo, ou nulo se houver algum problema
    • get

      public static byte[] get(String file)
      Lê o arquivo, e convenientemente retorna nulo em vez de lançar uma Exception se houver algum problema.
      Returns:
      o conteúdo do arquivo, ou nulo se houver algum problema