Package play.vfs

Class VirtualFile

java.lang.Object
play.vfs.VirtualFile

@Deprecated @NullMarked @CheckReturnValue public class VirtualFile extends Object
Deprecated.
This class is not needed anymore. It was used in Play! framework to load resources from local folder "modules" which was a custom dependency management mechanism. RePlay uses standard Maven/Gradle dependencies. Folder "modules" doesn't exist anymore.

So we use plain old File instead.

  • Method Details

    • getName

      public String getName()
      Deprecated.
    • exists

      public boolean exists()
      Deprecated.
    • length

      public long length()
      Deprecated.
    • child

      public VirtualFile child(String name)
      Deprecated.
    • open

      public static VirtualFile open(String file)
      Deprecated.
    • open

      public static VirtualFile open(File file)
      Deprecated.
    • getRealFile

      public File getRealFile()
      Deprecated.
    • getURI

      public URI getURI()
      Deprecated.
    • content

      public byte[] content()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • search

      @Deprecated public static @Nullable VirtualFile search(Collection<VirtualFile> roots, String path)
      Deprecated.