Questions tagged [reader]

Reader specifies a software that can read files of a specific format or a hardware gadget that can read some memory card or similar device.

Reader specifies a software that can read files of a specific format or a hardware gadget that can read some memory card or similar device.

554 questions
5
votes
1 answer

How to localize with BufferedReader?

In Java 11 BufferedReader documentation I have found following sentence: Programs that use DataInputStreams for textual input can be localized by replacing each DataInputStream with an appropriate BufferedReader. I cannot find any explanation how…
Line
  • 1,529
  • 3
  • 18
  • 42
5
votes
1 answer

What is java.io.Reader transferTo(java.io.Writer) method in Java 10 ? Is there a similar method for InputStream?

I read the Java 10 documentation on java.io.Reader.transferTo(...) and it says: Reads all characters from this reader and writes the characters to the given writer in the order that they are read The method transferTo in Reader would be very…
Shubham Kadlag
  • 2,248
  • 1
  • 13
  • 32
5
votes
4 answers

How do I visualize a DocBook file?

DocBook looks like a really great format for any kind of documentation. Until you try to read it Do you know any working online-reader or standalone software (smaller than 500MB, please) to read/preview a DocBook XML file without having to…
Kamafeather
  • 8,663
  • 14
  • 69
  • 99
5
votes
4 answers

Keep double quotes in a text file using csv reader

Hi I have a text file with string : hello,"foo, bar" i want to split it into a list as: ['hello', '"foo, bar"'] Is there a way I can acheive this ? I am trying this as of now : for line in sys.stdin: csv_file = StringIO.StringIO(line) …
piyush121
  • 496
  • 11
  • 16
4
votes
4 answers

How to convert InputStream to Reader in java?

reader = new BufferedReader(new InputStreamReader(inputStream)) reader = new InputStreamReader(new BufferedInputStream(inputStream)) which is better? why?
XenoAmess
  • 345
  • 1
  • 3
  • 12
4
votes
1 answer

Making a CSV via Excel gives me '' in front of the first column name

I generated a csv via excel and when printing the key names, I get some weird characters appended to the first key like so: keys(['row1', 'row2'] import csv path = 'C:\\Users\\asdf\\Desktop\\file.csv' with open(path, 'r') as file: reader =…
displayName
  • 195
  • 2
  • 15
4
votes
1 answer

PDF Viewer in Qt

I am trying to create a pdf viewer inside qt using Adobe Readers ActiveX, but it requires to install Adobe Reader, so is it possible without installing Adobe reader we can create pdf viewer
Dnyaneshwar
  • 122
  • 1
  • 3
  • 11
4
votes
3 answers

Golang buffer with concurrent readers

I want to build a buffer in Go that supports multiple concurrent readers and one writer. Whatever is written to the buffer should be read by all readers. New readers are allowed to drop in at any time, which means already written data must be able…
Tympanix
  • 113
  • 1
  • 2
  • 9
4
votes
1 answer

TensorFlow - decode_csv: Expect 3 fields but have 5 in record 0, when given 5 defaults throws: Expect 5 fields but have 3 in record 0

I'm trying to run the example from https://www.tensorflow.org/programmers_guide/reading_data with my custom data that looks like: example_data.txt DESC|manner|How did serfdom develop in and then leave Russia ? ENTY|cremat|What films featured the…
user47376
  • 2,263
  • 3
  • 21
  • 26
4
votes
2 answers

Read/copy up to a certain number of bytes from `io.Reader` to `io.Writer` in Golang, or return error if OVER a certain bytes limit?

I have an io.Reader in Golang and I want to double-check that the size of its data is below a predetermined maximum before or while running io.Copy() to save it to disk using io.Writer. Since the file data in io.Reader could theoretically be quite…
Ben Guild
  • 4,881
  • 7
  • 34
  • 60
4
votes
0 answers

NFC Card reader in Virtualbox Unreliable

I am on Mac OS X and running Virtualbox. Inside the Virtualbox there's a debian (Kali Linux) which I am mapping a ACS ACR122U to, that is attached to the Host via USB. It shows up: root@kali:~/nfc# lsusb Bus 002 Device 001: ID 1d6b:0003 Linux…
J.Blond86
  • 51
  • 1
  • 1
  • 5
4
votes
1 answer

How to handle the exceptions thrown from item reader?

I want to catch the exceptions thrown from item reader (e.g. reader not open , incorrect token exceptions etc) and handle it. Currently spring batch is throwing them as fatal exceptons and come out of the step. Please let me know if there is any way…
Gopi
  • 619
  • 2
  • 9
  • 27
4
votes
0 answers

how can i get file from content://com.adobe.reader.fileprovider

I'm writing an Android app and I encountered problem with sharing file via my application from Adobe Acrobat Reader mobile. It works from any other application or media store. I don't know if I'm missing something. The problem is only on Android…
krupniok13
  • 61
  • 5
4
votes
2 answers

Change default reader in common lisp

I wrote some function that could replace the function read of common lisp (defun my-read (stream &rest args) (declare (ignore args)) (funcall (my-get-macro-character (read-char stream)))) Is there a way to use this function as default reader?
cl-porky11
  • 339
  • 1
  • 11
4
votes
1 answer

Clojure: How do I get the file/line number on which a map was defined?

I know I can get the :line and :file from the metadata on a var; however, I'm building a system where the user can pass me raw maps and I will end up "linking" the data together at a later time. When this linkage fails, I'd like to report the…
Tony K.
  • 5,535
  • 23
  • 27
1
2
3
36 37