All Questions
Tagged with streamwriter java
38
questions
1
vote
1
answer
134
views
Using Stax2 to escape special characters in Scala
I am trying to use Stax2 in order to write xml files with escaping special characters for the attributes.
When I am trying to achieve is an exact output like this:
<elem1 att1="This 
 ...
0
votes
0
answers
25
views
XStream - data within a tag should be indented identically
I could use some help to get a better XML output. I hope to find a solution here! Couldn't find any solution for this.
That is my current output:
<java.util.Arrays_-ArrayList>
<a class=&...
3
votes
4
answers
2k
views
Issue writing in the Download directory
I'm trying to write this xlsx file in the Download directory of a Samsung Galaxy Tab A 2019 (Android 9.0). If I try to do this on my emulator (Google Pixel C with android 9.0) it works without any ...
0
votes
1
answer
1k
views
How do I use a for loop with input and output streams?
I'm practicing the file reader and writer methods in Java, I wrote this code and doesn't work as expected, advice please...
import java.io.FileInputStream;
import java.io.FileOutputStream;
import ...
0
votes
0
answers
209
views
Why does the stream position go to the end
I have a csv file, after I overwrite 1 line with the Write method, after re-writing to the file everything is already added to the end of the file, and not to a specific line
using System.Collections;...
0
votes
1
answer
788
views
Java program to write csv is going to next tab
HiExperts
I am writing simple write csv program in java and I would need to have 3 headers and values in next row for each header. basically the content needs to go 2 next tab. but it working instead ...
0
votes
0
answers
81
views
Java - Overriding StdOut and writing Japanese to a File
I have been trying to create a class that can be set as Standard Out and that writes to a File. So far, no problem. However, when I try to write some Japanese into the output it won't show up in the ...
0
votes
0
answers
242
views
Write JSON Object to file- append not working
I'try to save my custom JSONObject into the file.Everything working correct but I can't append json into file.For example,If I click twice to save json,in my file I have one element.Here is a my ...
0
votes
2
answers
571
views
How to get length of a stream writer in java
In java is there any functionality equivalent to below c# code for getting stream length.
StreamWriter.BaseStream.Length
I have searched on internet and also I checked the properties of "...
-2
votes
1
answer
875
views
Java Process console output [duplicate]
I need help with process outputs.
I working on a Process console, and if I write to process output, I need to close to write. If I want to send another command, I get "Stream closed" error. Can ...
1
vote
0
answers
134
views
For loop using OutPutStreamWriter
I am able to use OutputStreamWriter to write a single string to my php successfully. I am struggling to figure out how to use a for loop to write multiple strings though.
For the for loop, I would ...
-1
votes
1
answer
39
views
why this code dont write movie data in binery file?
File movie5.dat is create on hard disk but no data is in the file! When I
run code no error found and file have not binary data.
import java.nio.file.*;
import java.io.*;
public class Main
{
...
0
votes
1
answer
38
views
Creating file from data stored in xml
I really don't know how to describe this properly. I have a XML file with files in following format (it's a part of a jpg file):
mF1vmzAUhu8n7T8g307gpNu6bgrpxT6u9lGp3Q/w4JBYA9uynSz59ztA0pKKFFpj+...
0
votes
2
answers
270
views
FromJson Expected BEGIN_OBJECT
hi have some trouble finding what's wrong with my Json parser.
Hi have an object student (ID,Name,Grade)
This is how i write my student in my document :
public void run() {
System....
0
votes
1
answer
197
views
Close BufferedOutputStream output after 30 seconds if download fails
On clicking Download, my code starts writing content from SAN location in a new opened tab window and once complete, downloads PDF to local system. I would like to close the new tab window if the file ...