private fun DeferredFileOutputStream( threshold: Int, outputFile: File, prefix: String, suffix: String, directory: File ) { super(threshold) outputFile = outputFile memoryOutputStream = ByteArrayOutputStream() currentOutputStream = memoryOutputStream prefix = prefix suffix = suffix directory = directory }
Constructs an instance of this class which will trigger an event at the specified threshold , and save data either to a file beyond that point .