Java DataInputStream Read Long readLong(DataInputStream inputStream)

Here you can find the source of readLong(DataInputStream inputStream)

Description

Read a long value from an input stream

License

Open Source License

Parameter

Parameter Description
inputStream a parameter

Exception

Parameter Description
IOException an exception

Return

int value

Declaration

public final static long readLong(DataInputStream inputStream) throws IOException 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:/*  w  w  w.  j a va2  s  . c  o  m*/
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

import java.io.DataInputStream;

import java.io.IOException;

public class Main {
    /**
     * Read a long value from an input stream
     * 
     * @param inputStream
     * @return int value
     * @throws IOException
     */
    public final static long readLong(DataInputStream inputStream) throws IOException {
        return inputStream.readLong();
    }
}

Related

  1. readLong(DataInputStream dataStream)
  2. readLong(final DataInputStream in)
  3. readLong(final DataInputStream in)
  4. readLongString(DataInputStream in)