Example usage for org.apache.commons.net.ftp FTP FILE_STRUCTURE

List of usage examples for org.apache.commons.net.ftp FTP FILE_STRUCTURE

Introduction

In this page you can find the example usage for org.apache.commons.net.ftp FTP FILE_STRUCTURE.

Prototype

int FILE_STRUCTURE

To view the source code for org.apache.commons.net.ftp FTP FILE_STRUCTURE.

Click Source Link

Document

A constant used to indicate a file is to be treated as a continuous sequence of bytes.

Usage

From source file:org.mockftpserver.stub.StubFtpServerIntegrationTest.java

/**
 * Test file structure (STRU)/*from ww w . j  av a 2  s .  co  m*/
 */
public void testStru() throws Exception {
    ftpClientConnect();

    // STRU
    boolean success = ftpClient.setFileStructure(FTP.FILE_STRUCTURE);
    assertTrue("Unable to STRU", success);
    verifyReplyCode("setFileStructure", 200);
}