V
V
Valery Khizhevsky2019-01-02 00:19:35
Java
Valery Khizhevsky, 2019-01-02 00:19:35

What exactly to transfer in a stream?

Good New Year's Eve, gentlemen.
The question is this.
5c2bd92822003301906905.png
What should be passed in the argument where the stream is required?
I understand that the answer is a stream, but which one and how to create it?
PS I apologize in advance for the stupid question, I just can not solve it myself ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-01-02
@Roshette

Obviously the output stream to the file you want

try (OutputStream out = new FileOutputStream(new File("test.dxf"))) {
    someStreamGenerator.generate(someDoc, out);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question