Examples of copy()


Examples of org.fcrepo.server.storage.types.Datastream.copy()

                // take a copy of the existing datastream versions
                Date[] versions = w.getDatastreamVersions(dsID);
                Map<Date, Datastream> copyDS = new HashMap<Date, Datastream>();
                for (Date version: versions) {
                    Datastream d = w.GetDatastream(dsID, version);
                    copyDS.put(version, d.copy());
                }

                // purge the existing datastream (all versions)
                w.removeDatastream(dsID, null, null);
View Full Code Here

Examples of org.fcrepo.server.storage.types.DatastreamXMLMetadata.copy()

                for (int i = versions.length - 1; i >= 0; i--) {

                    // get a managed content copy of this datastream version
                    DatastreamXMLMetadata existing = (DatastreamXMLMetadata)copyDS.get(versions[i]);
                    DatastreamManagedContent newDS = new DatastreamManagedContent();
                    existing.copy(newDS);

                    // X control group will have been copied over by above, reset it
                    newDS.DSControlGrp = controlGroup;

                    // probably not necessary, but just in case...
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.odf.saver.copying.ManifestCopyingParser.copy()

      final String name = zipEntry.getName();
      if (MANIFEST_XML.equals( name )) {
        try {
          _zipOutputStream.putNextEntry( new ZipEntry( name ) );
          final CopyingParser parser = new ManifestCopyingParser();
          parser.copy( inputStream, _zipOutputStream );
          _zipOutputStream.closeEntry();
        }
        catch (XMLStreamException e) {
          final Throwable nestedException = e.getNestedException();
          if (nestedException != null) {
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.odf.saver.copying.StylesCopyingParser.copy()

      }
      else if (STYLES_XML.equals( name )) {
        try {
          _zipOutputStream.putNextEntry( new ZipEntry( name ) );
          final CopyingParser parser = new StylesCopyingParser( _styles );
          parser.copy( inputStream, _zipOutputStream );
          _zipOutputStream.closeEntry();
        }
        catch (XMLStreamException e) {
          final Throwable nestedException = e.getNestedException();
          if (nestedException != null) {
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.odf.xml.stream.CopyingParser.copy()

      final String name = zipEntry.getName();
      if (MANIFEST_XML.equals( name )) {
        try {
          _zipOutputStream.putNextEntry( new ZipEntry( name ) );
          final CopyingParser parser = new ManifestCopyingParser();
          parser.copy( inputStream, _zipOutputStream );
          _zipOutputStream.closeEntry();
        }
        catch (XMLStreamException e) {
          final Throwable nestedException = e.getNestedException();
          if (nestedException != null) {
View Full Code Here

Examples of org.fusesource.hawtbuf.proto.PBMessage.copy()

        if( name.endsWith("$Getter") || name.endsWith("$Buffer") ) {
            // Interface is ok we us giving them a read only impl.
            rc = msg;
        } else {
            // They want a read/write impl.
            rc = msg.copy();
        }
        return rc;
    }

    public void encodeRequest(ClassLoader loader, Class<?>[] types, Object[] args, DataByteArrayOutputStream target) throws IOException {
View Full Code Here

Examples of org.glassfish.api.admin.Payload.Part.copy()

    private void writePartsTo(Iterator<Part> parts, OutputStream os) throws IOException {
        ZipOutputStream zos = new ZipOutputStream(os);
        while (parts.hasNext()) {
            Part part = parts.next();
            prepareEntry(part, zos);
            part.copy(zos);
            zos.closeEntry();
        }
        zos.close();
    }
View Full Code Here

Examples of org.glassfish.api.deployment.InstrumentableClassLoader.copy()

        if (phase==Phase.PREPARE) {
            if (sharable) {
                return sharableTemp;
            } else {
                InstrumentableClassLoader cl = InstrumentableClassLoader.class.cast(sharableTemp);
                return cl.copy();
            }
        } else {
            // we are out of the prepare phase, destroy the shareableTemp and
            // return the final classloader
            if (sharableTemp!=null) {
View Full Code Here

Examples of org.gradle.api.internal.file.FileOperations.copy()

    public void execute(final FileCollection source, File destDir, boolean use, String windowTitle, String docTitle, String header, String footer, String overview, boolean includePrivate, final Set<Groovydoc.Link> links, final Iterable<File> groovyClasspath, Iterable<File> classpath, Project project) {

        final File tmpDir = new File(project.getBuildDir(), "tmp/groovydoc");
        FileOperations fileOperations = (ProjectInternal) project;
        fileOperations.delete(tmpDir);
        fileOperations.copy(new Action<CopySpec>() {
            public void execute(CopySpec copySpec) {
                copySpec.from(source).into(tmpDir);
            }
        });
View Full Code Here

Examples of org.gwt.mosaic.ui.client.table.TableModelHelper.ColumnSortList.copy()

        clearCache();
        lastSortList = null;
      }
    } else if (!sortList.equals(lastSortList)) {
      clearCache();
      lastSortList = sortList.copy();
    }

    // Check if all requested rows are in the cache
    int startRow = request.getStartRow();
    int numRows = request.getNumRows();
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.