data.putShort(Convert.intToShort(str_content.length));
data.put(str_content);
return data.array();
}
if (type == FILETYPE) {
FileType type = (FileType)getValue(Tree.DATA_KEY);
ByteBuffer data = Misc.getByteBuffer(1 + 2 + type.getBytes().length + 2 + TAG_NAME_FILE_TYPE.length);
data.position(0);
data.put(SEARCH_BY_META);
data.putShort(Convert.intToShort(type.getBytes().length));
data.put(type.getBytes());
data.putShort(Convert.intToShort(TAG_NAME_FILE_TYPE.length));
data.put(TAG_NAME_FILE_TYPE);
return data.array();
}