Package zombie.util.io
Class BitHeader.BitHeaderBase
java.lang.Object
zombie.util.io.BitHeader.BitHeaderBase
- All Implemented Interfaces:
BitHeaderRead
,BitHeaderWrite
- Direct Known Subclasses:
BitHeader.BitHeaderByte
,BitHeader.BitHeaderInt
,BitHeader.BitHeaderLong
,BitHeader.BitHeaderShort
- Enclosing class:
- BitHeader
public abstract static class BitHeader.BitHeaderBase extends java.lang.Object implements BitHeaderRead, BitHeaderWrite
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BitHeaderBase()
-
Method Summary
Modifier and Type Method Description void
addFlags(int int1)
void
addFlags(long long1)
protected abstract void
addflags_header(int int1)
protected abstract void
addflags_header(long long1)
void
create()
boolean
equals(int int1)
boolean
equals(long long1)
protected abstract boolean
equals_header(int int1)
protected abstract boolean
equals_header(long long1)
abstract int
getLen()
int
getStartPosition()
boolean
hasFlags(int int1)
boolean
hasFlags(long long1)
protected abstract boolean
hasflags_header(int int1)
protected abstract boolean
hasflags_header(long long1)
void
read()
protected abstract void
read_header()
abstract void
release()
protected void
reset()
protected abstract void
reset_header()
protected void
setBuffer(java.nio.ByteBuffer byteBuffer)
protected void
setWrite(boolean boolean1)
void
write()
protected abstract void
write_header()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
isWrite
protected boolean isWrite -
buffer
protected java.nio.ByteBuffer buffer -
start_pos
protected int start_pos
-
-
Constructor Details
-
BitHeaderBase
public BitHeaderBase()
-
-
Method Details
-
setBuffer
protected void setBuffer(java.nio.ByteBuffer byteBuffer) -
setWrite
protected void setWrite(boolean boolean1) -
getStartPosition
public int getStartPosition()- Specified by:
getStartPosition
in interfaceBitHeaderRead
- Specified by:
getStartPosition
in interfaceBitHeaderWrite
-
reset
protected void reset() -
getLen
public abstract int getLen()- Specified by:
getLen
in interfaceBitHeaderRead
- Specified by:
getLen
in interfaceBitHeaderWrite
-
release
public abstract void release()- Specified by:
release
in interfaceBitHeaderRead
- Specified by:
release
in interfaceBitHeaderWrite
-
reset_header
protected abstract void reset_header() -
write_header
protected abstract void write_header() -
read_header
protected abstract void read_header() -
addflags_header
protected abstract void addflags_header(int int1) -
addflags_header
protected abstract void addflags_header(long long1) -
hasflags_header
protected abstract boolean hasflags_header(int int1) -
hasflags_header
protected abstract boolean hasflags_header(long long1) -
equals_header
protected abstract boolean equals_header(int int1) -
equals_header
protected abstract boolean equals_header(long long1) -
create
public void create()- Specified by:
create
in interfaceBitHeaderWrite
-
write
public void write()- Specified by:
write
in interfaceBitHeaderWrite
-
read
public void read()- Specified by:
read
in interfaceBitHeaderRead
-
addFlags
public void addFlags(int int1)- Specified by:
addFlags
in interfaceBitHeaderWrite
-
addFlags
public void addFlags(long long1)- Specified by:
addFlags
in interfaceBitHeaderWrite
-
hasFlags
public boolean hasFlags(int int1)- Specified by:
hasFlags
in interfaceBitHeaderRead
- Specified by:
hasFlags
in interfaceBitHeaderWrite
-
hasFlags
public boolean hasFlags(long long1)- Specified by:
hasFlags
in interfaceBitHeaderRead
- Specified by:
hasFlags
in interfaceBitHeaderWrite
-
equals
public boolean equals(int int1)- Specified by:
equals
in interfaceBitHeaderRead
- Specified by:
equals
in interfaceBitHeaderWrite
-
equals
public boolean equals(long long1)- Specified by:
equals
in interfaceBitHeaderRead
- Specified by:
equals
in interfaceBitHeaderWrite
-