(CharSequence value, Charset charset)
| 84 | } |
| 85 | |
| 86 | public static Supplier string(CharSequence value, Charset charset) { |
| 87 | Require.nonNull("Value to return", value); |
| 88 | Require.nonNull("Character set", charset); |
| 89 | |
| 90 | return bytes(value.toString().getBytes(charset)); |
| 91 | } |
| 92 | |
| 93 | public static Supplier file(final File file) { |
| 94 | return new FileContentSupplier(file); |