Refine search
/** * @return the remainder (coincident with NCName usually) for this IRI. */ public Optional<String> getRemainder() { if (remainder.isEmpty()) { return emptyOptional(); } return optional(remainder); }
/** * @return the remainder (coincident with NCName usually) for this IRI. */ public Optional<String> getRemainder() { if (remainder.isEmpty()) { return emptyOptional(); } return optional(remainder); }
/** * @return the remainder (coincident with NCName usually) for this IRI. */ public Optional<String> getRemainder() { if (remainder.isEmpty()) { return emptyOptional(); } return optional(remainder); }
/** * @param suffix suffix to turn to optional. Empty string is the same as null * @return optional value for remainder */ protected Optional<String> asOptional(@Nullable String suffix) { if (suffix == null || suffix.isEmpty()) { return emptyOptional(); } return optional(suffix); }
/** * @param suffix suffix to turn to optional. Empty string is the same as null * @return optional value for remainder */ protected Optional<String> asOptional(@Nullable String suffix) { if (suffix == null || suffix.isEmpty()) { return emptyOptional(); } return optional(suffix); }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new GZIPOutputStream(outputStream)); } catch (IOException e) { LOGGER.error("Fille cannot be found or opened", e); return emptyOptional(); } } }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new GZIPOutputStream(outputStream)); } catch (IOException e) { LOGGER.error("Fille cannot be found or opened", e); return emptyOptional(); } } }
/** * @param suffix suffix to turn to optional. Empty string is the same as null * @return optional value for remainder */ protected Optional<String> asOptional(@Nullable String suffix) { if (suffix == null || suffix.isEmpty()) { return emptyOptional(); } return optional(suffix); }
@Override public Optional<InputStream> getInputStream() { try { return optional(new FileInputStream(file)); } catch (FileNotFoundException e) { LOGGER.error("File cannot be found", e); failedOnStreams.set(true); return emptyOptional(); } } }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new GZIPOutputStream(outputStream)); } catch (IOException e) { LOGGER.error("Fille cannot be found or opened", e); return emptyOptional(); } } }
@Override public Optional<InputStream> getInputStream() { if (!streamAvailable) { return emptyOptional(); } try { return optional(new GZIPInputStream(new ByteArrayInputStream(byteBuffer))); } catch (IOException e) { LOGGER.error("Buffer cannot be opened", e); failedOnStreams.set(true); return emptyOptional(); } }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new GZIPOutputStream(new FileOutputStream(out))); } catch (IOException e) { LOGGER.error("Cannot create output stream", e); return emptyOptional(); } }
@Override public Optional<Writer> getWriter() { try { return optional(new BufferedWriter(new FileWriter(file))); } catch (IOException e) { LOGGER.error("Writer cannot be created", e); return emptyOptional(); } }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new BufferedOutputStream(new FileOutputStream(file))); } catch (IOException e) { LOGGER.error("Input stream cannot be created", e); return emptyOptional(); } }
@Override public Optional<InputStream> getInputStream() { if (!streamAvailable) { return emptyOptional(); } try { return optional(new GZIPInputStream(new ByteArrayInputStream(byteBuffer))); } catch (IOException e) { LOGGER.error("Buffer cannot be opened", e); failedOnStreams.set(true); return emptyOptional(); } }
@Override public Optional<InputStream> getInputStream() { try { return optional(new FileInputStream(file)); } catch (FileNotFoundException e) { LOGGER.error("File cannot be found", e); failedOnStreams.set(true); return emptyOptional(); } } }
@Override public Optional<Writer> getWriter() { try { return optional(new BufferedWriter(new FileWriter(file))); } catch (IOException e) { LOGGER.error("Writer cannot be created", e); return emptyOptional(); } }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new BufferedOutputStream(new FileOutputStream(file))); } catch (IOException e) { LOGGER.error("Input stream cannot be created", e); return emptyOptional(); } }
@Override public Optional<OutputStream> getOutputStream() { try { return optional(new GZIPOutputStream(new FileOutputStream(out))); } catch (IOException e) { LOGGER.error("Cannot create output stream", e); return emptyOptional(); } }
@Override public Optional<InputStream> getInputStream() { try { return optional(new GZIPInputStream(new FileInputStream(file))); } catch (IOException e) { LOGGER.error("File cannot be found or opened", e); failedOnStreams.set(true); return emptyOptional(); } } }