org.richfaces.resource.optimizer.vfs.file

## Class FileVFSFile

- java.lang.Object
- - org.richfaces.resource.optimizer.vfs.file.FileVFSFile

- All Implemented Interfaces:
    VirtualFile
  Direct Known Subclasses:
    FileVFSRoot

      public class FileVFSFile
      extends Object
      implements VirtualFile

  Author:
    Nick Belaevski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileVFSFile(File file, String relativePath)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `VirtualFile` | `getChild(String path)`
    `VirtualFile` | `getChild(String path, boolean chrooted)`
    `Collection<VirtualFile>` | `getChildren()`
    `protected File` | `getFile()`
    `InputStream` | `getInputStream()`
    `String` | `getName()`
    `String` | `getRelativePath()`
    `boolean` | `isDirectory()`
    `boolean` | `isFile()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### FileVFSFile

          public FileVFSFile(File file,
                             String relativePath)

  - ### Method Detail

    - #### isFile

          public boolean isFile()

      Specified by:
        `isFile` in interface `VirtualFile`

    - #### isDirectory

          public boolean isDirectory()

      Specified by:
        `isDirectory` in interface `VirtualFile`

    - #### getInputStream

          public InputStream getInputStream()
                                     throws IOException

      Specified by:
        `getInputStream` in interface `VirtualFile`
      Throws:
        `IOException`

    - #### getName

          public String getName()

      Specified by:
        `getName` in interface `VirtualFile`

    - #### getRelativePath

          public String getRelativePath()

      Specified by:
        `getRelativePath` in interface `VirtualFile`

    - #### getChildren

          public Collection<VirtualFile> getChildren()

      Specified by:
        `getChildren` in interface `VirtualFile`

    - #### getChild

          public VirtualFile getChild(String path)

      Specified by:
        `getChild` in interface `VirtualFile`

    - #### getChild

          public VirtualFile getChild(String path,
                                      boolean chrooted)

      Specified by:
        `getChild` in interface `VirtualFile`

    - #### getFile

          protected File getFile()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.