java.io.DataInputStream.readFloat()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中java.io.DataInputStream.readFloat()方法的一些代码示例,展示了DataInputStream.readFloat()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataInputStream.readFloat()方法的具体详情如下:
包路径:java.io.DataInputStream
类名称:DataInputStream
方法名:readFloat

DataInputStream.readFloat介绍

[英]See the general contract of the readFloat method of DataInput.

Bytes for this operation are read from the contained input stream.
[中]参见readFloat方法DataInput的总合同。
此操作的字节从包含的输入流中读取。

代码示例

代码示例来源:origin: apache/incubator-dubbo

@Override
public float readFloat() throws IOException {
  return dis.readFloat();
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public float readFloat() throws IOException {
  return dis.readFloat();
}

代码示例来源:origin: netty/netty

@Override
public final float readFloat() throws IOException {
  return in.readFloat();
}

代码示例来源:origin: libgdx/libgdx

public final float readFloat () throws IOException {
  return dis.readFloat();
}

代码示例来源:origin: libgdx/libgdx

public final float readFloat () throws IOException {
  return dis.readFloat();
}

代码示例来源:origin: apache/flink

@Override
  public Object deserialize(boolean normalized) throws IOException {
    if (normalized) {
      return (double) input.readFloat();
    } else {
      return input.readFloat();
    }
  }
}

代码示例来源:origin: redisson/redisson

public FloatInfo(DataInputStream in, int index) throws IOException {
  super(index);
  value = in.readFloat();
}

代码示例来源:origin: redisson/redisson

@Override
public final float readFloat() throws IOException {
  return in.readFloat();
}

代码示例来源:origin: com.h2database/h2

/**
 * Read a float.
 *
 * @return the value
 */
private float readFloat() throws IOException {
  return in.readFloat();
}

代码示例来源:origin: voldemort/voldemort

private Float readFloat32(DataInputStream stream) throws IOException {
  float f = stream.readFloat();
  if(f == Float.MIN_VALUE)
    return null;
  else
    return f;
}

代码示例来源:origin: wildfly/wildfly

@Override
public final float readFloat() throws IOException {
  return in.readFloat();
}

代码示例来源:origin: org.javassist/javassist

public FloatInfo(DataInputStream in, int index) throws IOException
{
  super(index);
  value = in.readFloat();
}

代码示例来源:origin: apache/geode

@Override
public float readFloat() throws IOException {
 float result = this.dis.readFloat();
 this.count += 4;
 return result;
}

代码示例来源:origin: deeplearning4j/nd4j

public static float[] readFloat(int length, DataInputStream dis) throws IOException {
  float[] ret = new float[length];
  for (int i = 0; i < length; i++)
    ret[i] = dis.readFloat();
  return ret;
}

代码示例来源:origin: scouter-project/scouter

public FloatInfo(DataInputStream in, int index) throws IOException
{
  super(index);
  value = in.readFloat();
}

代码示例来源:origin: org.apache.ant/ant

/**
 * read a constant pool entry from a class stream.
 *
 * @param cpStream the DataInputStream which contains the constant pool
 *      entry to be read.
 * @exception IOException if there is a problem reading the entry from
 *      the stream.
 */
@Override
public void read(DataInputStream cpStream) throws IOException {
  setValue(cpStream.readFloat());
}

代码示例来源:origin: marytts/marytts

public void read(DataInputStream d, int noiseModel) throws IOException {
  int totalFrm = d.readInt();
  frames = null;
  if (totalFrm > 0) {
    frames = new HntmSpeechFrame[totalFrm];
    for (int i = 0; i < totalFrm; i++)
      frames[i] = new HntmSpeechFrame(d, noiseModel);
  }
  samplingRateInHz = d.readInt();
  originalDurationInSeconds = d.readFloat();
}

代码示例来源:origin: marytts/marytts

public void read(DataInputStream d, int noiseModel) throws IOException {
  int totalFrm = d.readInt();
  frames = null;
  if (totalFrm > 0) {
    frames = new HntmSpeechFrame[totalFrm];
    for (int i = 0; i < totalFrm; i++)
      frames[i] = new HntmSpeechFrame(d, noiseModel);
  }
  samplingRateInHz = d.readInt();
  originalDurationInSeconds = d.readFloat();
}

代码示例来源:origin: libgdx/libgdx

return new JsonValue(din.readLong());
else if (type == 'd')
  return new JsonValue(din.readFloat());
else if (type == 'D')
  return new JsonValue(din.readDouble());

代码示例来源:origin: libgdx/libgdx

return new JsonValue(din.readLong());
else if (type == 'd')
  return new JsonValue(din.readFloat());
else if (type == 'D')
  return new JsonValue(din.readDouble());

相关文章