@Override public final int skipBytes(int n) throws IOException { return in.skipBytes(n); } }
public int skipBytes (int n) throws IOException { return din.skipBytes(n); }
public int skipBytes (int n) throws IOException { return dis.skipBytes(n); }
public int skipBytes (int n) throws IOException { return din.skipBytes(n); }
public int skipBytes (int n) throws IOException { return dis.skipBytes(n); }
@Override public final int skipBytes(int n) throws IOException { return in.skipBytes(n); } }
@Override public final int skipBytes(int n) throws IOException { return in.skipBytes(n); } }
@Override public int skipBytes(int n) throws IOException { int result = this.dis.skipBytes(n); this.count += result; return result; }
public final int skipBytes(int n) throws IOException { mPosition += n; return d.skipBytes(n); }
public final int skipBytes(int n) throws IOException { return in.skipBytes(n); } }
/** * <p> * Skip over bytes in the stream. See the general contract of the <code>skipBytes</code> method of <code>DataInput</code>. * </p> * Bytes for this operation are read from the contained input stream. * * @param n * the number of bytes to be skipped. * * @return the actual number of bytes skipped. * * @throws IOException * if an I/O error occurs. */ public final int skipBytes(int n) throws IOException { return dis.skipBytes(n); } }// end class LEDataInputStream
/** * <p> * Skip over bytes in the stream. See the general contract of the <code>skipBytes</code> method of <code>DataInput</code>. * </p> * Bytes for this operation are read from the contained input stream. * * @param n * the number of bytes to be skipped. * * @return the actual number of bytes skipped. * * @throws IOException * if an I/O error occurs. */ public final int skipBytes(int n) throws IOException { return dis.skipBytes(n); } }// end class LEDataInputStream
@Nullable public static Chunk from(@NotNull DataInputStream dataInputStream, @NotNull String path) throws IOException { String typeID = typeID(dataInputStream, path); Chunk chunk = null; if (typeID != null) { long length = length(dataInputStream); byte[] data = new byte[(int) length]; dataInputStream.readFully(data); int padding = (int) ((ALIGNMENT - (length % ALIGNMENT)) % ALIGNMENT); dataInputStream.skipBytes(padding); chunk = new Chunk(typeID, data); } return chunk; }
/** * Reads the root NBT {@link CompoundTag} from the stream. * * @param readLimiter The read limiter to prevent overflow when reading the NBT data. * @return The tag that was read. * @throws IOException if an I/O error occurs. */ public CompoundTag readCompound(NbtReadLimiter readLimiter) throws IOException { // read type TagType type = TagType.byIdOrError(is.readUnsignedByte()); if (type != TagType.COMPOUND) { throw new IOException("Root of NBTInputStream was " + type + ", not COMPOUND"); } // for now, throw away name int nameLength = is.readUnsignedShort(); is.skipBytes(nameLength); // read tag return (CompoundTag) readTagPayload(type, 0, readLimiter); }
if (valIn.skipBytes(skipValBytes) != skipValBytes) { throw new IOException("Failed to seek to " + currentKey + "(th) value!");