Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package CSharp.IO;
  6.  
  7. import java.io.*;
  8. /**
  9.  *
  10.  * @author matthewgray
  11.  */
  12. public class FileInfo {
  13.     //private variables
  14.     private String _fileName;
  15.     private File _file;
  16.    
  17.     //ctor
  18.     public FileInfo(String fileName) throws IOException {
  19.         _fileName = fileName;
  20.         _file = new File(fileName);
  21.         if (_file.isDirectory()) {
  22.             throw new IOException("The path supplied is a directory.");
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement