BitStream

Inheritance: java.lang.Object, com.aspose.ms.System.IO.Stream

public class BitStream extends System.IO.Stream

Constructors

Constructor Description
BitStream()
BitStream(int capacity)
BitStream(byte[] buffer, boolean writable)
BitStream(byte[] buffer)

Fields

Field Description
Null

Methods

Method Description
available()
beginRead(byte[] arg0, int arg1, int arg2, System.AsyncCallback arg3, Object arg4)
beginWrite(byte[] arg0, int arg1, int arg2, System.AsyncCallback arg3, Object arg4)
canRead()
canSeek()
canWrite()
close()
dispose()
endRead(System.IAsyncResult arg0)
endWrite(System.IAsyncResult arg0)
equals(Object arg0)
flush()
fromJava(InputStream arg0)
getClass()
getLength()
getPosition()
hashCode()
notify()
notifyAll()
read(byte[] buffer, int offset, int count)
readBits(int count)
readByte()
seek(long offset, int loc)
setCapacity(int value)
setLength(long value)
setPosition(long value)
toInputStream()
toJava(System.IO.Stream arg0)
toOutputStream()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
write(byte[] buffer, int offset, int count)
writeByte(byte value)

BitStream()

public BitStream()

BitStream(int capacity)

public BitStream(int capacity)

Parameters:

Parameter Type Description
capacity int

BitStream(byte[] buffer, boolean writable)

public BitStream(byte[] buffer, boolean writable)

Parameters:

Parameter Type Description
buffer byte[]
writable boolean

BitStream(byte[] buffer)

public BitStream(byte[] buffer)

Parameters:

Parameter Type Description
buffer byte[]

Null

public static System.IO.Stream Null

available()

public long available()

Returns: long

beginRead(byte[] arg0, int arg1, int arg2, System.AsyncCallback arg3, Object arg4)

public System.IAsyncResult beginRead(byte[] arg0, int arg1, int arg2, System.AsyncCallback arg3, Object arg4)

Parameters:

Parameter Type Description
arg0 byte[]
arg1 int
arg2 int
arg3 com.aspose.ms.System.AsyncCallback
arg4 java.lang.Object

Returns: com.aspose.ms.System.IAsyncResult

beginWrite(byte[] arg0, int arg1, int arg2, System.AsyncCallback arg3, Object arg4)

public System.IAsyncResult beginWrite(byte[] arg0, int arg1, int arg2, System.AsyncCallback arg3, Object arg4)

Parameters:

Parameter Type Description
arg0 byte[]
arg1 int
arg2 int
arg3 com.aspose.ms.System.AsyncCallback
arg4 java.lang.Object

Returns: com.aspose.ms.System.IAsyncResult

canRead()

public boolean canRead()

Returns: boolean

canSeek()

public boolean canSeek()

Returns: boolean

canWrite()

public boolean canWrite()

Returns: boolean

close()

public void close()

dispose()

public void dispose()

endRead(System.IAsyncResult arg0)

public int endRead(System.IAsyncResult arg0)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.IAsyncResult

Returns: int

endWrite(System.IAsyncResult arg0)

public void endWrite(System.IAsyncResult arg0)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.IAsyncResult

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

flush()

public void flush()

fromJava(InputStream arg0)

public static System.IO.Stream fromJava(InputStream arg0)

Parameters:

Parameter Type Description
arg0 java.io.InputStream

Returns: com.aspose.ms.System.IO.Stream

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getLength()

public long getLength()

Returns: long

getPosition()

public long getPosition()

Returns: long

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

read(byte[] buffer, int offset, int count)

public int read(byte[] buffer, int offset, int count)

Parameters:

Parameter Type Description
buffer byte[]
offset int
count int

Returns: int

readBits(int count)

public int readBits(int count)

Parameters:

Parameter Type Description
count int

Returns: int

readByte()

public int readByte()

Returns: int

seek(long offset, int loc)

public long seek(long offset, int loc)

Parameters:

Parameter Type Description
offset long
loc int

Returns: long

setCapacity(int value)

public void setCapacity(int value)

Parameters:

Parameter Type Description
value int

setLength(long value)

public void setLength(long value)

Parameters:

Parameter Type Description
value long

setPosition(long value)

public void setPosition(long value)

Parameters:

Parameter Type Description
value long

toInputStream()

public InputStream toInputStream()

Returns: java.io.InputStream

toJava(System.IO.Stream arg0)

public static InputStream toJava(System.IO.Stream arg0)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.IO.Stream

Returns: java.io.InputStream

toOutputStream()

public OutputStream toOutputStream()

Returns: java.io.OutputStream

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int

write(byte[] buffer, int offset, int count)

public void write(byte[] buffer, int offset, int count)

Parameters:

Parameter Type Description
buffer byte[]
offset int
count int

writeByte(byte value)

public void writeByte(byte value)

Parameters:

Parameter Type Description
value byte