@@ -0,0 +1,1199 @@
+package com.minimajack.v8.io.stream;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.io.OutputStream;%0Aimport java.nio.file.Path;%0A%0Aimport com.minimajack.v8.format.V8File;%0Aimport com.minimajack.v8.format.V8FileAttribute;%0A%0Apublic abstract class SmartV8OutputStream%0A    extends OutputStream%0A%7B%0A    protected V8FileAttribute cachedV8FileAttributes;%0A%0A    protected V8File file;%0A%0A    protected File realFile;%0A%0A    protected Path realPath;%0A%0A    public SmartV8OutputStream( V8File file )%0A        throws IOException%0A    %7B%0A        this.file = file;%0A        this.cachedV8FileAttributes = file.getAttributes();%0A        getOrCreateFile();%0A    %7D%0A%0A    protected final void getOrCreateFile()%0A        throws IOException%0A    %7B%0A        String name = cachedV8FileAttributes.getName().trim();%0A        String path = file.getContext().getPath();%0A        File file = new File( path );%0A        file.mkdirs();%0A        realFile = new File( path + File.separator + name + %22.txt%22 );%0A        if ( !realFile.exists() )%0A        %7B%0A            realFile.createNewFile();%0A        %7D%0A        this.realPath = file.toPath();%0A        this.realFile = file;%0A    %7D%0A%0A    public Path getPath()%0A    %7B%0A        return realPath;%0A    %7D%0A%7D%0A

Add foggoten file