Package org.jmule.core.sharingmanager

Examples of org.jmule.core.sharingmanager.FileType


      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();
    }
   
View Full Code Here

TOP

Related Classes of org.jmule.core.sharingmanager.FileType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.