Examples of DocumentFile


Examples of com.findwise.hydra.DocumentFile

    List<DocumentFile<MemoryType>> l = new ArrayList<DocumentFile<MemoryType>>();
    l.add(documentFile);
    io.insert(md, l);

    /* First of all, we should be able to fetch the attachment */
    DocumentFile outputDocFile = io.getDocumentFile(md, documentFile.getFileName());
    assertNotNull(outputDocFile);

    /* And it should have the correct data */
    byte[] outputData = IOUtils.toByteArray(outputDocFile.getStream());
    assertArrayEquals(inputData, outputData);

    /* We have changed the state of the documentFile we sent in (for better or worse) */
    assertEquals(md.getID(), documentFile.getDocumentId());

View Full Code Here

Examples of com.openkm.openoffice.config.DocumentFile

    {
        singleton = this;
        m_xContext = context;
        try {
            configFile = new ConfigFile();
            documentFile = new DocumentFile();
            lang = new Lang();
            imageUtil = new ImageUtil();
            waitWindow = new WaitWindow();
        } catch (OKMException ex) {
            new ErrorForm(ex);
View Full Code Here

Examples of org.geoserver.cluster.impl.handlers.DocumentFile

                    throw new IllegalStateException("Unable to find style for event: "+sInfo.toString());
                }

                // transmit the file
                jmsPublisher.publish(getTopic(), getJmsTemplate(), options,
                        new DocumentFile(styleFile));
            }

            // propagate the event
            jmsPublisher.publish(getTopic(), getJmsTemplate(), options, event);
        } catch (Exception e) {
View Full Code Here

Examples of org.geoserver.cluster.impl.handlers.DocumentFile

                  styleFile =  new File(loader.getBaseDirectory().getCanonicalPath(),
                      styleFileName);
                }
               
                // publish the style xml document
                jmsPublisher.publish(getTopic(), getJmsTemplate(), options, new DocumentFile(
                        styleFile));
            }

            // propagate the event
            jmsPublisher.publish(getTopic(), getJmsTemplate(), options, event);
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.