public int read() throws SmbException { if( read( tmp, 0, 1 ) == -1 ) { return -1; } return tmp[0] & 0xFF; } public int read( byte b[] ) throws SmbException {
public final String readUTF() throws SmbException { int size = readUnsignedShort(); byte[] b = new byte[size]; read( b, 0, size ); try { return Encdec.dec_utf8( b, 0, size ); } catch( IOException ioe ) { throw new SmbException( "", ioe ); } } public final void writeBoolean( boolean v ) throws SmbException {
public int read() throws SmbException { if( read( tmp, 0, 1 ) == -1 ) { return -1; } return tmp[0] & 0xFF; } public int read( byte b[] ) throws SmbException {
public final String readUTF() throws SmbException { int size = readUnsignedShort(); byte[] b = new byte[size]; read( b, 0, size ); try { return Encdec.dec_utf8( b, 0, size ); } catch( IOException ioe ) { throw new SmbException( "", ioe ); } } public final void writeBoolean( boolean v ) throws SmbException {
public final void readFully( byte b[], int off, int len ) throws SmbException { int n = 0, count; do { count = this.read( b, off + n, len - n ); if( count < 0 ) throw new SmbException( "EOF" ); n += count; fp += count; } while( n < len ); } public int skipBytes( int n ) throws SmbException {
public final void readFully( byte b[], int off, int len ) throws SmbException { int n = 0, count; do { count = this.read( b, off + n, len - n ); if( count < 0 ) throw new SmbException( "EOF" ); n += count; fp += count; } while( n < len ); } public int skipBytes( int n ) throws SmbException {
public final int readUnsignedByte() throws SmbException { if((read( tmp, 0, 1 )) < 0 ) { throw new SmbException( "EOF" ); } return tmp[0] & 0xFF; } public final short readShort() throws SmbException {
public final boolean readBoolean() throws SmbException { if((read( tmp, 0, 1 )) < 0 ) { throw new SmbException( "EOF" ); } return tmp[0] != (byte)0x00; } public final byte readByte() throws SmbException {
public final int readUnsignedByte() throws SmbException { if((read( tmp, 0, 1 )) < 0 ) { throw new SmbException( "EOF" ); } return tmp[0] & 0xFF; } public final short readShort() throws SmbException {
public final float readFloat() throws SmbException { if((read( tmp, 0, 4 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_floatbe( tmp, 0 ); } public final double readDouble() throws SmbException {
public final char readChar() throws SmbException { if((read( tmp, 0, 2 )) < 0 ) { throw new SmbException( "EOF" ); } return (char)Encdec.dec_uint16be( tmp, 0 ); } public final int readInt() throws SmbException {
public final long readLong() throws SmbException { if((read( tmp, 0, 8 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_uint64be( tmp, 0 ); } public final float readFloat() throws SmbException {
@Override public final int readInt () throws SmbException { if ( ( read(this.tmp, 0, 4) ) < 0 ) { throw new SmbEndOfFileException(); } return Encdec.dec_uint32be(this.tmp, 0); }
public final short readShort() throws SmbException { if((read( tmp, 0, 2 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_uint16be( tmp, 0 ); } public final int readUnsignedShort() throws SmbException {
public final float readFloat() throws SmbException { if((read( tmp, 0, 4 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_floatbe( tmp, 0 ); } public final double readDouble() throws SmbException {
public final short readShort() throws SmbException { if((read( tmp, 0, 2 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_uint16be( tmp, 0 ); } public final int readUnsignedShort() throws SmbException {
public final long readLong() throws SmbException { if((read( tmp, 0, 8 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_uint64be( tmp, 0 ); } public final float readFloat() throws SmbException {
public final double readDouble() throws SmbException { if((read( tmp, 0, 8 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_doublebe( tmp, 0 ); } public final String readLine() throws SmbException {
public final float readFloat() throws SmbException { if((read( tmp, 0, 4 )) < 0 ) { throw new SmbException( "EOF" ); } return Encdec.dec_floatbe( tmp, 0 ); } public final double readDouble() throws SmbException {
@Override public final short readShort () throws SmbException { if ( ( read(this.tmp, 0, 2) ) < 0 ) { throw new SmbEndOfFileException(); } return Encdec.dec_uint16be(this.tmp, 0); }