Class StoreBase

  • All Implemented Interfaces:

    
    public abstract class StoreBase
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      StoreBase()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final File inputPathToFile(Path inputPath, Path filePath) Stores the content of an InputStream in a File.
      • Methods inherited from class java.lang.Object

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

      • StoreBase

        StoreBase()
    • Method Detail

      • inputPathToFile

         final File inputPathToFile(Path inputPath, Path filePath)

        Stores the content of an InputStream in a File. Creates the File if it does not exist. Uses buffered streams with a fixed buffer size to optimize memory usage for large files.

        Parameters:
        inputPath - the incoming binary data to be saved.
        filePath - Path where the stream should be saved.
        Returns:

        the newly created File.