public final class Slices
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Slice |
copyFromUtf8(java.lang.String input) |
static Slice |
copyOf(byte[] bytes) |
static Slice |
copyOf(byte[] bytes,
int offset,
int len) |
static Slice |
copyOf(java.io.InputStream inputStream,
int expectedStreamSize) |
static Slice |
wrap(byte[] bytes) |
static Slice |
wrap(byte[] bytes,
int offset,
int len) |
static Slice |
wrap(java.nio.ByteBuffer buffer) |
public static Slice wrap(java.nio.ByteBuffer buffer)
public static Slice wrap(byte[] bytes)
public static Slice wrap(byte[] bytes, int offset, int len)
public static Slice copyOf(byte[] bytes)
public static Slice copyOf(byte[] bytes, int offset, int len)
public static Slice copyOf(java.io.InputStream inputStream, int expectedStreamSize)
public static Slice copyFromUtf8(java.lang.String input)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.