What to use instead file...?!
Posted on 2005-04-14
I'm using TransformerHandler to transform .txt to xml file. This TransformerHandler needs StreamResult to output the tags created. Ok, it is not so important!
I need structure, such like File, but I don't want to create a file to the disk!!!
java.io.File doesn't create file to the disk, but when I call new FileOutputStream(myFile) it creates the file to the disk! StreamResult needs OutputStream, that way I'm invoke it!
So I need the structure like File, with InputStream and OutputStream, but I dont want to create file to the disk.
Thanks in advance!