Package com.intellij.util.io
Class IOUtil
- java.lang.Object
-
- com.intellij.util.io.IOUtil
-
public class IOUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
allocReadWriteUTFBuffer()
static String
readString(DataInput stream)
static String
readUTFFast(byte[] buffer, DataInput storage)
static void
writeString(String s, DataOutput stream)
static void
writeUTFFast(byte[] buffer, DataOutput storage, String value)
static void
writeUTFTruncated(DataOutput stream, String text)
-
-
-
Method Detail
-
readString
public static String readString(DataInput stream) throws IOException
- Throws:
IOException
-
writeString
public static void writeString(String s, DataOutput stream) throws IOException
- Throws:
IOException
-
writeUTFTruncated
public static void writeUTFTruncated(DataOutput stream, String text) throws IOException
- Throws:
IOException
-
allocReadWriteUTFBuffer
public static byte[] allocReadWriteUTFBuffer()
-
writeUTFFast
public static void writeUTFFast(byte[] buffer, DataOutput storage, @NotNull String value) throws IOException
- Throws:
IOException
-
readUTFFast
public static String readUTFFast(byte[] buffer, DataInput storage) throws IOException
- Throws:
IOException
-
-