Package br.com.neto.util

Examples of br.com.neto.util.Constantes


 
  @SuppressWarnings("static-access")
  public static void main(String[] args) {

    Constantes c = Constantes.getInstance();
    File imagem = new File(c.FILE_DIRETORIO + c.SLASH + "elfa.png");
    Image image = null;
   
    try(InputStream is = new BufferedInputStream(new FileInputStream(imagem))){
     
View Full Code Here


public class LerArquivoTxt {
 
  @SuppressWarnings("static-access")
  public static void main(String[] args) throws IOException {
   
    Constantes c = Constantes.getInstance();
    File arquivo = new File(c.FILE_DIRETORIO + c.SLASH + "album.txt");
   
    InputStream is = new FileInputStream(arquivo);
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
View Full Code Here

public class EscreverArquivoTxt {
 
  @SuppressWarnings("static-access")
  public static void main(String[] args) {
   
    Constantes c = Constantes.getInstance();
    File arquivo = new File(c.FILE_DIRETORIO + c.SLASH + "album.txt");
    File arquivoBkp = new File(c.FILE_DIRETORIO + c.SLASH + "album_bkp.txt");

    // Extrutura try-with-resources do Java 7
    try(BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(arquivo)));
View Full Code Here

TOP

Related Classes of br.com.neto.util.Constantes

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.