Example usage for java.io DataInputStream readUTF

List of usage examples for java.io DataInputStream readUTF

Introduction

In this page you can find the example usage for java.io DataInputStream readUTF.

Prototype

public static final String readUTF(DataInput in) throws IOException 

Source Link

Document

Reads from the stream in a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a String.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    InputStream is = new FileInputStream("c:\\test.txt");

    DataInput in = new DataInputStream(is);
    DataInputStream.readUTF(in);

}

From source file:org.efaps.webdav4vfs.test.ramvfs.RamFileRandomAccessContent.java

/**
 * {@inheritDoc}
 */
public String readUTF() throws IOException {
    return DataInputStream.readUTF(this);
}

From source file:dk.statsbiblioteket.util.LineReader.java

@Override
public String readUTF() throws IOException {
    return DataInputStream.readUTF(this);
}