Package com.ngt.jopenmetaverse.shared.exception.asset

Examples of com.ngt.jopenmetaverse.shared.exception.asset.AssetPrimitiveParsingException


                String xmlData;
        try {
          xmlData = Utils.bytesToString(AssetData);
                  DecodeXml(xmlData);
        } catch (UnsupportedEncodingException e) {
          throw new AssetPrimitiveParsingException(e);
        }
                return true;
        }
        return false;
    }
View Full Code Here


            OarFile.SOGToXml2(baos, this);
            baos.flush();
      }
      catch(Exception e)
      {
        throw new AssetPrimitiveParsingException(e);
      }
            return baos.toString();
    }
View Full Code Here

      root = doc.getDocumentElement();

      }
      catch(Exception e)
      {
        throw new AssetPrimitiveParsingException(e);
      }
      //Get the root name

      return readSceneObjectGroup(root);
    }
View Full Code Here

    }
   
    public static PrimObject LoadPrim(Node root) throws AssetPrimitiveParsingException
    {
    if (root.getNodeType() != Node.ELEMENT_NODE|| !root.getNodeName().equals("SceneObjectPart"))
      throw new AssetPrimitiveParsingException("Expected <SceneObjectPart>");
     
        PrimObject obj = new PrimObject();
        obj.Shape = new PrimObject.ShapeBlock();
        obj.Inventory = new PrimObject.InventoryBlock();
        obj.AllowedDrop = true;
View Full Code Here

          {
            byte[] teData = Utils.decodeBase64String(node.getFirstChild().getNodeValue().trim());
            try {
            prim.Textures =  new TextureEntry(teData, 0, teData.length);
          } catch (Exception e) {
            throw new AssetPrimitiveParsingException(e);
          }
          }
          else if(nodeName.equalsIgnoreCase("PathBegin"))
          {
            shape.PathBegin = Primitive.UnpackBeginCut(Integer.parseInt(node.getFirstChild().getNodeValue().trim()));
View Full Code Here

          else if(inodeName.equalsIgnoreCase("Type"))
          {
            item.Type = AssetType.get((byte)Integer.parseInt(inode.getFirstChild().getNodeValue().trim()));
          }
          else
            throw new AssetPrimitiveParsingException("Not implemented node: " + inodeName);
        }
      }
      return item;
    }
View Full Code Here

            && node.getNodeName().equalsIgnoreCase("TaskInventoryItem"))
        {
          if(node.getNodeName().equalsIgnoreCase("TaskInventoryItem"))
            invItems.add(ReadTaskInventoryItem(node));
          else
            new AssetPrimitiveParsingException("Not implemented Node: " + node.getNodeName());
        }
      }
       return invItems.toArray(new PrimObject.InventoryBlock.ItemBlock[0]);
    }
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.exception.asset.AssetPrimitiveParsingException

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.