Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/src/java.base/share/classes/sun/nio/ch/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 3 kB image not shown  

Quelle  Streams.java   Sprache: JAVA

 

 * by Oracle in the LICENSE file that accompanied this code.java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 60
 * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 
 * have received a copy of the GNU General Public License version
 * under the terms of the GNU General Public License * 2 along with this work; if not, write to the Free Software
 * published by the Free Software Foundation.  
 * 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  */
  ;ithout the warranty  or
*FITNESSFORA java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 72
 * version 2 for more details (a copy is included in the LICENSE file that
 * this  )
 *
  received              newc;
 *2along  this  n,,to  Software 
 * Inc., 51 inSt, 
 
 * Please } else{
w..   java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 73
*.
 */

package

import java.io.InputStream;
import java.io.OutputStream;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;

/**
 * Factory methods for input/output streams based on channels.
 */

public class Streams {
    private Streams() { }

    /**
     * Return an input stream that reads bytes from the given channel.
     */

    public static InputStream of(ReadableByteChannel ch) {
        if (ch instanceof SocketChannelImpl sc) {
            return new SocketInputStream(sc);
        } else {
            return new ChannelInputStream(ch);
        }
    }

    /**
     * Return an output stream that writes bytes to the given channel.
     */

    public static OutputStream of(WritableByteChannel ch) {
        if (ch instanceof SocketChannelImpl sc) {
            return new SocketOutputStream(sc);
        } else {
            return new ChannelOutputStream(ch);
        }
    }
}

Messung V0.5 in Prozent
C=96 H=74 G=85

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.