FileInputStream.this

Creates a <code>FileInputStream</code> by opening a connection to an actual file, the file named by the path name <code>name</code> in the file system. A new <code>FileDescriptor</code> object is created to represent this file connection. <p> First, if there is a security manager, its <code>checkRead</code> method is called with the <code>name</code> argument as its argument. <p> If the named file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading then a <code>FileNotFoundException</code> is thrown.

@param name the system-dependent file name. @exception FileNotFoundException if the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading. @exception SecurityException if a security manager exists and its <code>checkRead</code> method denies read access to the file. @see java.lang.SecurityManager#checkRead(java.lang.string)

  1. this(string name)
    class FileInputStream
    this
    (
    string name
    )
  2. this(File file)

Meta