public class JilterServerPacketUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getZeroTerminatedString(java.nio.ByteBuffer dataBuffer) |
static java.lang.String[] |
getZeroTerminatedStringArray(java.nio.ByteBuffer dataBuffer) |
static void |
sendAddHeaderPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String header,
java.lang.String value) |
static void |
sendAddRcptPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String recipient) |
static void |
sendChgHeaderPacket(java.nio.channels.WritableByteChannel writeChannel,
int index,
java.lang.String header,
java.lang.String value) |
static void |
sendDelRcptPacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String recipient) |
static void |
sendPacket(java.nio.channels.WritableByteChannel writeChannel,
int command,
java.nio.ByteBuffer dataBuffer) |
static void |
sendProgressPacket(java.nio.channels.WritableByteChannel writeChannel) |
static void |
sendReplBodyPacket(java.nio.channels.WritableByteChannel writeChannel,
java.nio.ByteBuffer dataBuffer) |
static void |
sendReplyCodePacket(java.nio.channels.WritableByteChannel writeChannel,
java.lang.String reply) |
static void |
writeZeroTerminatedString(java.nio.ByteBuffer dataBuffer,
java.lang.String string) |
static int |
zeroTerminatedStringLength(java.lang.String string) |
public static void sendPacket(java.nio.channels.WritableByteChannel writeChannel, int command, java.nio.ByteBuffer dataBuffer) throws java.io.IOException
java.io.IOException
public static int zeroTerminatedStringLength(java.lang.String string)
public static void writeZeroTerminatedString(java.nio.ByteBuffer dataBuffer, java.lang.String string) throws java.io.IOException
java.io.IOException
public static void sendAddRcptPacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String recipient) throws java.io.IOException
java.io.IOException
public static void sendDelRcptPacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String recipient) throws java.io.IOException
java.io.IOException
public static void sendAddHeaderPacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String header, java.lang.String value) throws java.io.IOException
java.io.IOException
public static void sendChgHeaderPacket(java.nio.channels.WritableByteChannel writeChannel, int index, java.lang.String header, java.lang.String value) throws java.io.IOException
java.io.IOException
public static void sendReplBodyPacket(java.nio.channels.WritableByteChannel writeChannel, java.nio.ByteBuffer dataBuffer) throws java.io.IOException
java.io.IOException
public static void sendProgressPacket(java.nio.channels.WritableByteChannel writeChannel) throws java.io.IOException
java.io.IOException
public static void sendReplyCodePacket(java.nio.channels.WritableByteChannel writeChannel, java.lang.String reply) throws java.io.IOException
java.io.IOException
public static java.lang.String getZeroTerminatedString(java.nio.ByteBuffer dataBuffer)
public static java.lang.String[] getZeroTerminatedStringArray(java.nio.ByteBuffer dataBuffer)
Copyright © 2021. All Rights Reserved.