Package 

Object FileSaver


  • 
    public class FileSaver
    
                        

    Utility class to save a file from a Source to a Uri.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static FileSaver INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final Boolean saveFile(Source source, Uri uri, ContentResolver contentResolver) Saves the data from the source to the file at the uri using the contentResolver.
      • Methods inherited from class java.lang.Object

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

      • saveFile

         final Boolean saveFile(Source source, Uri uri, ContentResolver contentResolver)

        Saves the data from the source to the file at the uri using the contentResolver.

        Parameters:
        source - The source of the data to save.
        uri - The URI of the file to save the data to.
        contentResolver - The content resolver to use to save the data.