org.csource.fastdfs
类 StructBase

java.lang.Object
  继承者 org.csource.fastdfs.StructBase
直接已知子类:
StructGroupStat, StructStorageStat

public abstract class StructBase
extends Object

C struct body decoder

版本:
Version 1.17
作者:
Happy Fish / YuQing

嵌套类摘要
protected static class StructBase.FieldInfo
           
 
构造方法摘要
StructBase()
           
 
方法摘要
protected  boolean booleanValue(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
protected  byte byteValue(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
protected  Date dateValue(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
protected  int int32Value(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
protected  int intValue(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
protected  long longValue(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
abstract  void setFields(byte[] bs, int offset)
          set fields
protected  String stringValue(byte[] bs, int offset, StructBase.FieldInfo filedInfo)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

StructBase

public StructBase()
方法详细信息

setFields

public abstract void setFields(byte[] bs,
                               int offset)
set fields

参数:
bs - byte array
offset - start offset

stringValue

protected String stringValue(byte[] bs,
                             int offset,
                             StructBase.FieldInfo filedInfo)

longValue

protected long longValue(byte[] bs,
                         int offset,
                         StructBase.FieldInfo filedInfo)

intValue

protected int intValue(byte[] bs,
                       int offset,
                       StructBase.FieldInfo filedInfo)

int32Value

protected int int32Value(byte[] bs,
                         int offset,
                         StructBase.FieldInfo filedInfo)

byteValue

protected byte byteValue(byte[] bs,
                         int offset,
                         StructBase.FieldInfo filedInfo)

booleanValue

protected boolean booleanValue(byte[] bs,
                               int offset,
                               StructBase.FieldInfo filedInfo)

dateValue

protected Date dateValue(byte[] bs,
                         int offset,
                         StructBase.FieldInfo filedInfo)


Copyright © 2017. All rights reserved.