Class PathFileWrapper

  • All Implemented Interfaces:
    com.android.io.IAbstractFile, com.android.io.IAbstractFolder, com.android.io.IAbstractResource

    public class PathFileWrapper
    extends java.lang.Object
    implements com.android.io.IAbstractFile, com.android.io.IAbstractFolder
    An IAbstractFile or IAbstractFolder that wraps a Path.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.android.io.IAbstractFolder

        com.android.io.IAbstractFolder.FilenameFilter
    • Constructor Summary

      Constructors 
      Constructor Description
      PathFileWrapper​(java.nio.file.Path path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean exists()  
      java.io.InputStream getContents()  
      com.android.io.IAbstractFile getFile​(java.lang.String name)  
      java.lang.String getOsLocation()  
      java.io.OutputStream getOutputStream()  
      void setContents​(java.io.InputStream source)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathFileWrapper

        public PathFileWrapper​(java.nio.file.Path path)
    • Method Detail

      • getContents

        public java.io.InputStream getContents()
                                        throws com.android.io.StreamException
        Specified by:
        getContents in interface com.android.io.IAbstractFile
        Throws:
        com.android.io.StreamException
      • setContents

        public void setContents​(java.io.InputStream source)
                         throws com.android.io.StreamException
        Specified by:
        setContents in interface com.android.io.IAbstractFile
        Throws:
        com.android.io.StreamException
      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws com.android.io.StreamException
        Specified by:
        getOutputStream in interface com.android.io.IAbstractFile
        Throws:
        com.android.io.StreamException
      • getOsLocation

        public java.lang.String getOsLocation()
        Specified by:
        getOsLocation in interface com.android.io.IAbstractResource
      • exists

        public boolean exists()
        Specified by:
        exists in interface com.android.io.IAbstractResource
      • getFile

        public com.android.io.IAbstractFile getFile​(java.lang.String name)
        Specified by:
        getFile in interface com.android.io.IAbstractFolder