Java com.google.common.io Resources fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.io Resources fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.io Resources.

The text is from its open source code.

Method

ByteSourceasByteSource(URL url)
Returns a ByteSource that reads from the given URL.
CharSourceasCharSource(URL url, Charset charset)
Returns a CharSource that reads from the given URL using the given character set.
voidcopy(URL from, OutputStream to)
Copies all bytes from a URL to an output stream.
URLgetResource(String resourceName)
Returns a URL pointing to resourceName if the resource is found using the Thread#getContextClassLoader() context class loader .
URLgetResource(Class contextClass, String resourceName)
Given a resourceName that is relative to contextClass , returns a URL pointing to the named resource.
ListreadLines(URL url, Charset charset)
Reads all of the lines from a URL.
TreadLines(URL url, Charset charset, LineProcessor callback)
Streams lines from a URL, stopping when our callback returns false, or we have read all of the lines.
byte[]toByteArray(URL url)
Reads all bytes from a URL into a byte array.
StringtoString(URL url, Charset charset)
Reads all characters from a URL into a String , using the given character set.