Examples of BinaryResourceImpl


Examples of org.apache.xindice.client.xmldb.resources.BinaryResourceImpl

        }

        if ("XMLResource".equals(type)) {
            return new XMLResourceImpl(name, this);
        } else {
            return new BinaryResourceImpl(name, this, null);
        }
    }
View Full Code Here

Examples of org.apache.xindice.client.xmldb.resources.BinaryResourceImpl

                Hashtable compressed = (Hashtable) result;
                SymbolDeserializer symbolDeserial = new SymbolDeserializer();
                return new XMLResourceImpl(id, id, this, symbolDeserial.getSymbols(compressed), (byte[]) compressed.get("document"));
            } else if (result instanceof byte[]) {
                // Result is binary.
                return new BinaryResourceImpl(id, this, (byte[]) result);
            } else {
                // Result is XML.
                return new XMLResourceImpl(id, this, (String) result);
            }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl

    {
      ResourceSet testResourceSet = createResourceSet();

      testResourceSet.getURIConverter().getURIMap().put(URI.createURI("../TargetObject/"), targetObject1.eResource().getURI().trimSegments(1).appendSegment(""));

      Resource libraryBinary = new BinaryResourceImpl(URI.createURI(temporaryFolder.newFile("model.binary").getAbsolutePath()));
      testResourceSet.getResources().add(libraryBinary);

      libraryBinary.load(new ByteArrayInputStream(out.toByteArray()), null);
      EChecker.checkObject(primaryObject, libraryBinary.getContents().get(0));
    }
    {
      ResourceSet testResourceSet = createResourceSet();

      testResourceSet.getURIConverter().getURIMap().put(URI.createURI("../TargetObject/"), targetObject1.eResource().getURI().trimSegments(1).appendSegment(""));
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl

        return createResource(uri,binary);
    }
   
    public Resource createResource(URI uri, boolean binary) {
       
        return binary ? new BinaryResourceImpl(uri) : createResourceGen(uri);
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.