|
Here is a short list of links related to this Java DataInput.java source code file:
Java example source code file (DataInput.java)
The DataInput.java Java example source code/* * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package java.io; /** * The {@code DataInput} interface provides * for reading bytes from a binary stream and * reconstructing from them data in any of * the Java primitive types. There is also * a * facility for reconstructing a {@code String} * from data in * <a href="#modified-utf-8">modified UTF-8 * format. * <p> * It is generally true of all the reading * routines in this interface that if end of * file is reached before the desired number * of bytes has been read, an {@code EOFException} * (which is a kind of {@code IOException}) * is thrown. If any byte cannot be read for * any reason other than end of file, an {@code IOException} * other than {@code EOFException} is * thrown. In particular, an {@code IOException} * may be thrown if the input stream has been * closed. * * <h3>Modified UTF-8 * <p> * Implementations of the DataInput and DataOutput interfaces represent * Unicode strings in a format that is a slight modification of UTF-8. * (For information regarding the standard UTF-8 format, see section * <i>3.9 Unicode Encoding Forms of The Unicode Standard, Version * 4.0</i>). * Note that in the following table, the most significant bit appears in the * far left-hand column. * * <blockquote> * <table border="1" cellspacing="0" cellpadding="8" * summary="Bit values and bytes"> * <tr> * <th colspan="9"> * All characters in the range {@code '\u005Cu0001'} to * {@code '\u005Cu007F'} are represented by a single byte:</span> * </tr> * <tr> * <td> |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.