Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.StreamIOException


                    m_binaryContentTempFile = null;
                    try {
                        m_binaryContentTempFile =
                                File.createTempFile("binary-datastream", null);
                    } catch (IOException ioe) {
                        throw new SAXException(new StreamIOException("Unable to create temporary file for binary content"));
                    }
                }
            } else if (m_format.equals(FOXML1_0)) {
                //==================
                // DISSEMINATORS...
View Full Code Here


                    m_dsLocation =
                        DatastreamManagedContent.TEMP_SCHEME
                                    + m_binaryContentTempFile.getAbsolutePath();
                    instantiateDatastream(new DatastreamManagedContent());
                } catch (FileNotFoundException fnfe) {
                    throw new SAXException(new StreamIOException("Unable to open temporary file created for binary content"));
                } catch (IOException fnfe) {
                    throw new SAXException(new StreamIOException("Error writing to temporary file created for binary content"));
                }
            }
            m_binaryContentTempFile = null;
            m_readingBinaryContent = false;
        } else if (uri.equals(FOXML.uri)
View Full Code Here

        }
        ReadOnlyContext context;
        try {
            context = ReadOnlyContext.getContext(null, null, "fcrepo-checksum", false);
        } catch (Exception e) {
            throw new StreamIOException(e.getMessage(),e);
        }
        context.setEnvironmentValues(environmentAttributes);
        return getContentStream(context);
    }
View Full Code Here

                    out.close();
                }
            } catch (Throwable th) {
                String message = "Error closing output";
                logger.error(message, th);
                throw new StreamIOException(message);
            }
        }
    }
View Full Code Here

                String message =
                        "[GetNextPIDServlet] An error has occured. "
                                + " The error was a \" "
                                + th.getClass().getName() + " \". Reason: "
                                + th.getMessage();
                throw new StreamIOException(message);
            }
        }
    }
View Full Code Here

                String message =
                        "[ListMethodsServlet] An error has occured. "
                                + " The error was a \" "
                                + th.getClass().getName() + " \". Reason: "
                                + th.getMessage();
                throw new StreamIOException(message);
            }
        }
    }
View Full Code Here

                    out.close();
                }
            } catch (Throwable th) {
                String message = "Error closing output";
                logger.error(message, th);
                throw new StreamIOException(message);
            }
        }
    }
View Full Code Here

                String message =
                        "[DescribeRepositoryServlet] An error has occured. "
                                + " The error was a \" "
                                + th.getClass().getName() + " \". Reason: "
                                + th.getMessage();
                throw new StreamIOException(message);
            }
        }
    }
View Full Code Here

                                    } catch (FileNotFoundException fnfe) {
                                        logger.error(
                                                "Unable to read temp file created for datastream from archive for " +
                                                        pid + " / " + dsID,
                                                fnfe);
                                        throw new StreamIOException(
                                                "Error reading from temporary file created for binary content for " +
                                                        pid + " / " + dsID);
                                    }
                                } else {
                                    ContentManagerParams params =
View Full Code Here

                String message =
                        "[GetObjectHistoryServlet] An error has occured. "
                                + " The error was a \" "
                                + th.getClass().getName() + " \". Reason: "
                                + th.getMessage();
                throw new StreamIOException(message);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.StreamIOException

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.