Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readUTF.Java

Reads a Java (UTF-8) formatted string from a connection


Description

Reads a Java (UTF-8) formatted string from a connection.

Usage

## Static method (use this):
## Java$readUTF(con, as.character=TRUE, ...)

## Don't use the below:
## S3 method for class 'Java'
readUTF(static, con, as.character=TRUE, ...)

Arguments

con

Binary connection to be read from.

as.character

If TRUE, the read string converted, i.e. translated, into an R character string before returned, otherwise an integer vector representation of the Unicode string is returned.

...

Not used.

Details

Currently only 8-bit UTF-8 byte sequences are supported, i.e. plain ASCII sequences, i.e. characters that take up more than one byte are read incorrectly without any warnings.

Value

Returns a character string or an integer vector.

Author(s)

Henrik Bengtsson

See Also

readBin(). For more information see Java.


R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.