Example usage for org.apache.commons.net.nntp NNTPCommand getCommand

List of usage examples for org.apache.commons.net.nntp NNTPCommand getCommand

Introduction

In this page you can find the example usage for org.apache.commons.net.nntp NNTPCommand getCommand.

Prototype

public static final String getCommand(int command) 

Source Link

Document

Retrieve the NNTP protocol command string corresponding to a specified command code.

Usage

From source file:org.random_access.newsreader.nntp.CustomNNTP.java

public int sendCommand(int command, String args) throws IOException {
    return this.sendCommand(NNTPCommand.getCommand(command), args);
}