Lines Matching refs:resource
159 * Copy the contents of a resource file to this file.
161 * @param resource the path of the resource, relative to the package of this class
168 * @throws ResourceIOException if there is a problem while reading the resource
170 public void copyResource(DocPath resource, boolean overwrite, boolean replaceNewLine)
176 InputStream in = BaseConfiguration.class.getResourceAsStream(resource.getPath());
185 while ((line = readResourceLine(resource, reader)) != null) {
197 while ((n = readResource(resource, in, buf)) > 0) {
208 throw new ResourceIOException(resource, e);
326 * Reads from an input stream opened from a given resource into a given buffer.
329 * @param resource the resource for the stream
335 private static int readResource(DocPath resource, InputStream in, byte[] buf) throws ResourceIOException {
339 throw new ResourceIOException(resource, e);
344 * Reads a line of characters from an input stream opened from a given resource.
347 * @param resource the resource for the stream