@Override public int readUnsignedByte() throws IOException { try { return getRaf().readUnsignedByte(); } catch (IOException ioe) { handleException(); throw ioe; } }
if (labelSize > 1) f.readUnsignedByte(); target = f.readUnsignedByte();
target.getElements()[target.getStartIndex() + i * 10 + labels.readUnsignedByte()] = 1;
public int readUnsignedByte() throws IOException { return delegate.readUnsignedByte(); } public int readUnsignedShort() throws IOException { return delegate.readUnsignedShort(); }
public static long readUInt64AsLong(RandomAccessFile myRandomAccessFile) throws IOException { long result = myRandomAccessFile.readUnsignedByte() | (myRandomAccessFile.readUnsignedByte() << 8) | (myRandomAccessFile.readUnsignedByte() << 16) | (myRandomAccessFile.readUnsignedByte() << 24) | (myRandomAccessFile.readUnsignedByte() << 32) | (myRandomAccessFile.readUnsignedByte() << 40) | (myRandomAccessFile.readUnsignedByte() << 48) | (myRandomAccessFile.readUnsignedByte() << 56); return result; }
protected void readInstructions(RandomAccessFile raf, int count) throws IOException { instructions = new short[count]; for (int i = 0; i < count; i++) { instructions[i] = (short) raf.readUnsignedByte(); } }
public static long readUInt32AsLong(RandomAccessFile myRandomAccessFile) throws IOException { long result = myRandomAccessFile.readUnsignedByte() | (myRandomAccessFile.readUnsignedByte() << 8) | (myRandomAccessFile.readUnsignedByte() << 16) | (myRandomAccessFile.readUnsignedByte() << 24); return result; }
public static int readUInt32AsInt(RandomAccessFile myRandomAccessFile) throws IOException { int result = myRandomAccessFile.readUnsignedByte() | (myRandomAccessFile.readUnsignedByte() << 8) | (myRandomAccessFile.readUnsignedByte() << 16) | (myRandomAccessFile.readUnsignedByte() << 24); return result; }
protected CmapFormat0(RandomAccessFile raf) throws IOException { super(raf); format = 0; first = -1; for (int i = 0; i < 256; i++) { glyphIdArray[i] = raf.readUnsignedByte(); if (glyphIdArray[i] > 0) { if (first == -1) first = i; last = i; } } }
public void read(RandomAccessFile myRandomAccessFile) throws IOException { lb_num = myRandomAccessFile.readUnsignedByte() + myRandomAccessFile.readUnsignedByte() * 256 + myRandomAccessFile.readUnsignedByte() * 256 * 256 + (int) myRandomAccessFile.readUnsignedByte() * 256 * 256 * 256; part_num = myRandomAccessFile.readUnsignedByte() + myRandomAccessFile.readUnsignedByte() * 256; }
private int Read16BitsHighLow(final RandomAccessFile fp) { try { int high = fp.readUnsignedByte(); int low = fp.readUnsignedByte(); return (high << 8) | low; } catch (IOException e) { e.printStackTrace(); return 0; } }
@Override public synchronized int getUnsignedShort(long offset) { try { raf.seek(offset); return (raf.readUnsignedByte() << 8) | raf.readUnsignedByte(); } catch (IOException e) { throw new DBException.VolumeIOError(e); } }
@Override public int readUnsignedByte(long offset) { checkRead(offset, BYTE); try { seekToOffset(offset); return randomAccessFile.readUnsignedByte(); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public byte readByteData(int register) { try { deviceFile.writeByte(register); return (byte) deviceFile.readUnsignedByte(); } catch (IOException e) { throw new RuntimeIOException("Error in I2C readByteData for device i2c-" + controller + "-0x" + Integer.toHexString(deviceAddress), e); } }
@Override public int readUnsignedByte(long offset) { checkRead(offset, BYTE); try { seekToOffset(offset); return randomAccessFile.readUnsignedByte(); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public int readUnsignedByte() throws IOException { try { return getRaf().readUnsignedByte(); } catch (IOException ioe) { handleException(); throw ioe; } }
@Override public int readUnsignedByte() throws IOException { try { return getRaf().readUnsignedByte(); } catch (IOException ioe) { handleException(); throw ioe; } }
@Override public int readUnsignedByte() throws IOException { try { return getRaf().readUnsignedByte(); } catch (IOException ioe) { handleException(); throw ioe; } }
public void read(RandomAccessFile myRandomAccessFile) throws IOException { TagIdentifier = BinaryTools.readUInt16AsInt(myRandomAccessFile); DescriptorVersion = BinaryTools.readUInt16AsInt(myRandomAccessFile); TagChecksum = (short) myRandomAccessFile.readUnsignedByte(); Reserved = myRandomAccessFile.readByte(); TagSerialNumber = BinaryTools.readUInt16AsInt(myRandomAccessFile); DescriptorCRC = BinaryTools.readUInt16AsInt(myRandomAccessFile); DescriptorCRCLength = BinaryTools.readUInt16AsInt(myRandomAccessFile); TagLocation = BinaryTools.readUInt32AsLong(myRandomAccessFile); }
@Test(expected = FileReactiveAuditException.class) public void readUnsignedByte() throws IOException { ReactiveAudit.off.commit(); try (RandomAccessFile rw = newRandomAccessFile()) { TestTools.strict.commit(); rw.readUnsignedByte(); } }