question: private int detectType ( String fileName ) throws IOException , FTPIllegalReplyException , FTPException { int start = fileName . lastIndexOf ( '.' ) + 1 ; int stop = fileName . length ( ) ; if ( start > 0 && start < stop - 1 ) { String ext = fileName . substring ( start , stop ) ; ext = ext . toLowerCase ( ) ; if ( textualExtensionRecognizer . isTextualExt ( ext ) ) { return TYPE_TEXTUAL ; } else { return TYPE_BINARY ; } } else { return TYPE_BINARY ; } }
target:  This method detects the type for a file transfer.