Klasse MessageUtils
java.lang.Object
org.teamapps.message.protocol.utils.MessageUtils
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic BitSetstatic BitSetreadBitSet(ByteBuffer buf) static booleanreadBoolean(ByteBuffer buf) static byte[]static byte[]readByteArray(ByteBuffer buf) static intstatic intreadByteAsInt(ByteBuffer buffer) static double[]static double[]static FileDatareadFile(DataInputStream dis, FileDataReader fileProvider) static FileDatareadFile(ByteBuffer buffer, FileDataReader fileProvider) static float[]static float[]readFloatArray(ByteBuffer buf) static MessagereadGenericMessage(DataInputStream dis, FileDataReader fileDataReader) static Instantstatic Instantstatic intreadInt(byte[] bytes, int pos) static int[]static int[]readIntArray(ByteBuffer buf) static LocalDatestatic LocalDateTimestatic LocalTimestatic long[]static long[]readLongArray(ByteBuffer buf) static Messagestatic intreadShort(ByteBuffer buffer) static StringreadString(byte[] bytes, int pos) static Stringstatic StringreadString(ByteBuffer buf) static String[]static String[]static voidwriteBitSet(DataOutputStream dos, BitSet bitSet) static voidwriteBoolean(ByteBuffer buffer, boolean value) static voidwriteByteArray(DataOutputStream dos, byte[] bytes) static voidwriteByteArray(ByteBuffer buf, byte[] bytes) static voidwriteDoubleArray(DataOutputStream dos, double[] doubleArray) static FileDatawriteFile(DataOutputStream dos, FileData fileData, FileDataWriter fileWriter) static voidwriteFile(ByteBuffer buffer, FileData fileData, FileDataWriter fileWriter) static voidwriteFloatArray(DataOutputStream dos, float[] floatArray) static voidwriteGenericMessage(DataOutputStream dos, Message message, FileDataWriter fileDataWriter) static voidwriteInstant32(DataOutputStream dos, Instant instant) static voidwriteInstant64(DataOutputStream dos, Instant instant) static voidwriteIntArray(DataOutputStream dos, int[] intArray) static voidwriteIntAsByte(DataOutputStream dos, int value) static voidwriteIntAsByte(ByteBuffer buffer, int value) static voidwriteLocalDate(DataOutputStream dos, LocalDate localDate) static voidwriteLocalDateTime(DataOutputStream dos, LocalDateTime localDateTime) static voidwriteLocalTime(DataOutputStream dos, LocalTime localTime) static voidwriteLongArray(DataOutputStream dos, long[] longArray) static voidwriteNullableMessage(DataOutputStream dos, Message message) static voidwriteShort(ByteBuffer buffer, int value) static voidwriteString(DataOutputStream dos, String value) static voidwriteString(ByteBuffer buffer, String value) static voidwriteStringArray(DataOutputStream dos, String[] stringArray) static voidwriteStringList(DataOutputStream dos, List<String> list)
-
Konstruktordetails
-
MessageUtils
public MessageUtils()
-
-
Methodendetails
-
readMessageOrNull
- Löst aus:
IOException
-
writeNullableMessage
- Löst aus:
IOException
-
readFile
public static FileData readFile(DataInputStream dis, FileDataReader fileProvider) throws IOException - Löst aus:
IOException
-
readFile
- Löst aus:
IOException
-
writeFile
public static FileData writeFile(DataOutputStream dos, FileData fileData, FileDataWriter fileWriter) throws IOException - Löst aus:
IOException
-
writeFile
public static void writeFile(ByteBuffer buffer, FileData fileData, FileDataWriter fileWriter) throws IOException - Löst aus:
IOException
-
writeIntAsByte
- Löst aus:
IOException
-
writeIntAsByte
- Löst aus:
IOException
-
readByteAsInt
- Löst aus:
IOException
-
readByteAsInt
-
writeString
- Löst aus:
IOException
-
writeString
-
readString
- Löst aus:
IOException
-
readString
-
readInt
public static int readInt(byte[] bytes, int pos) -
readString
-
writeByteArray
- Löst aus:
IOException
-
writeByteArray
-
readByteArray
- Löst aus:
IOException
-
readByteArray
-
writeBitSet
- Löst aus:
IOException
-
readBitSet
- Löst aus:
IOException
-
readBitSet
-
writeIntArray
- Löst aus:
IOException
-
readIntArray
- Löst aus:
IOException
-
readIntArray
-
writeLongArray
- Löst aus:
IOException
-
readLongArray
- Löst aus:
IOException
-
readLongArray
-
writeFloatArray
- Löst aus:
IOException
-
readFloatArray
- Löst aus:
IOException
-
readFloatArray
-
writeDoubleArray
- Löst aus:
IOException
-
readDoubleArray
- Löst aus:
IOException
-
readDoubleArray
-
writeStringArray
- Löst aus:
IOException
-
readStringArray
- Löst aus:
IOException
-
readStringArray
-
writeStringList
- Löst aus:
IOException
-
readStringList
- Löst aus:
IOException
-
readInstant32
- Löst aus:
IOException
-
writeInstant32
- Löst aus:
IOException
-
readInstant64
- Löst aus:
IOException
-
writeInstant64
- Löst aus:
IOException
-
readLocalDateTime
- Löst aus:
IOException
-
writeLocalDateTime
public static void writeLocalDateTime(DataOutputStream dos, LocalDateTime localDateTime) throws IOException - Löst aus:
IOException
-
readLocalDate
- Löst aus:
IOException
-
writeLocalDate
- Löst aus:
IOException
-
readLocalTime
- Löst aus:
IOException
-
writeLocalTime
- Löst aus:
IOException
-
readGenericMessage
public static Message readGenericMessage(DataInputStream dis, FileDataReader fileDataReader) throws IOException - Löst aus:
IOException
-
writeGenericMessage
public static void writeGenericMessage(DataOutputStream dos, Message message, FileDataWriter fileDataWriter) throws IOException - Löst aus:
IOException
-
writeBoolean
-
readBoolean
-
writeShort
-
readShort
-