Package org.apache.jackrabbit.value

Examples of org.apache.jackrabbit.value.BinaryImpl


        try {
            QValue value = getQValueFactory().create(stream);
            if (value instanceof InternalValue) {
                return ((InternalValue) value).getBLOBFileValue();
            } else {
                return new BinaryImpl(stream);
            }
        } catch (IOException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here


            }
            if (content.hasProperty(Constants.JCR_DATA)) {
                content.getProperty(Constants.JCR_DATA).remove();
            }
            try {
                content.setProperty(Constants.JCR_DATA, new BinaryImpl(is));
            } catch (IOException e) {
                logger.error(e.getMessage(), e);
            }
            if (contentType == null) {
                contentType = "application/binary";
View Full Code Here

                                // ignore
                            }
                        } else {
                            session.checkout(n);
                        }
                        n.setProperty(Constants.EXTRACTED_TEXT, new BinaryImpl(content.getBytes(SettingsBean
                                .getInstance().getCharacterEncoding())));
                        n.setProperty(Constants.EXTRACTION_DATE, new GregorianCalendar());
                        session.save();
                    } catch (Exception e) {
                        if (logger.isDebugEnabled()) {
View Full Code Here

        try {
            QValue value = getQValueFactory().create(stream);
            if (value instanceof InternalValue) {
                return ((InternalValue) value).getBLOBFileValue();
            } else {
                return new BinaryImpl(stream);
            }
        } catch (IOException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

        try {
            QValue value = getQValueFactory().create(stream);
            if (value instanceof InternalValue) {
                return ((InternalValue) value).getBLOBFileValue();
            } else {
                return new BinaryImpl(stream);
            }
        } catch (IOException e) {
            throw new RepositoryException(e);
        } finally {
            // JCR-2903
View Full Code Here

        try {
            QValue value = getQValueFactory().create(stream);
            if (value instanceof InternalValue) {
                return ((InternalValue) value).getBLOBFileValue();
            } else {
                return new BinaryImpl(stream);
            }
        } catch (IOException e) {
            throw new RepositoryException(e);
        } finally {
            // JCR-2903
View Full Code Here

        try {
            QValue value = getQValueFactory().create(stream);
            if (value instanceof InternalValue) {
                return ((InternalValue) value).getBLOBFileValue();
            } else {
                return new BinaryImpl(stream);
            }
        } catch (IOException e) {
            throw new RepositoryException(e);
        } finally {
            // JCR-2903
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.value.BinaryImpl

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.