Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
commons-net-1.4.1.jar - Apache Commons Net
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side of many basic Internet protocols.
commons-net-1.4.1.jar is distributed as part of the commons-net-1.4.1.zip download file.
JAR File Size and Download Location:
JAR name: commons-net.jar, commons-net-1.4.1.jar Target JDK version: 1.4 Dependency: None File name: commons-net-1.4.1.jar File size: 180792 bytes Date modified: 03-Dec-2005 Download: Apache Commons Net
✍: FYIcenter.com
⏎ org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
/* * Copyright 2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.net.ftp.parser; import org.apache.commons.net.ftp.FTPClientConfig; import org.apache.commons.net.ftp.FTPFile; /** * Implementation of FTPFileEntryParser and FTPFileListParser for IBM MVS Systems. * * @author <a href="jnadler@srcginc.com">Jeff Nadler</a> * @author <a href="wnoto@openfinance.com">William Noto</a> * @version $Id$ * @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) */ public class MVSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl { /** * This is the regular expression used by this parser. */ private static final String REGEX = "(.*)\\s+([^\\s]+)\\s*"; /** * Although this parser is now ignoring dates, someone may someday * figure out a way to accomodate this and this appears to be the * format used. For now, it won't be used. * SMC 2005/04/08 */ static final String DEFAULT_DATE_FORMAT = "yyyy/MM/dd"; // 2001/11/09 // This is not at all the tightest possible regexp for MVS LIST // output, but I'm not a mainframe guru so I have little idea what the // range of valid values are. I just needed to get the filename (Dsname); // note that no other FTPFile fields can be filled in with the results of // a LIST on MVS. The 'Referred' date seems to be 'last accessed date' // and not 'last modified date' so I didn't bother parsing it. // // Of course it works perfectly as-is and it distinguishes header lines from // file results so that's the important thing. // // This parser should be used when SYST returns: // 'MVS is the operating system of this server. FTP Server is running on z/OS.' // // Also note that there is no concept of directories in MVS, just datasets, // which have names composed of four dot separated names of up to 8 chars. // As a result, FTPFile.FILE_TYPE is always used. -JN 6/2004 jnadler<at>srcginc<dotcom> // Sample LIST results from MVS: // //Volume Unit Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname //FPFS42 3390 2004/06/23 1 1 FB 128 6144 PS INCOMING.RPTBM023.D061704 //FPFS41 3390 2004/06/23 1 1 FB 128 6144 PS INCOMING.RPTBM056.D061704 //FPFS25 3390 2004/06/23 1 1 FB 128 6144 PS INCOMING.WTM204.D061704 /** * The sole constructor for a MVSFTPEntryParser object. * * @exception IllegalArgumentException * Thrown if the regular expression is unparseable. Should not be seen * under normal conditions. It it is seen, this is a sign that * <code>REGEX</code> is not a valid regular expression. */ public MVSFTPEntryParser() { super(REGEX); } /** * Parses a line of an MVS FTP server file listing and converts it into a * usable format in the form of an <code> FTPFile </code> instance. If the * file listing line doesn't describe a file, <code> null </code> is * returned, otherwise a <code> FTPFile </code> instance representing the * files in the directory is returned. * <p> * @param entry A line of text from the file listing * @return An FTPFile instance corresponding to the supplied entry */ public FTPFile parseFTPEntry(String entry) { FTPFile f = null; if (matches(entry)) { f = new FTPFile(); String dataSetName = group(2); f.setType(FTPFile.FILE_TYPE); f.setName(dataSetName); return (f); } return null; } /* * @return */ protected FTPClientConfig getDefaultConfiguration() { return new FTPClientConfig( FTPClientConfig.SYST_MVS, DEFAULT_DATE_FORMAT, null, null, null, null); } }
⏎ org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
Or download all of them as a single archive file:
File name: commons-net-1.4.1-src.zip File size: 324370 bytes Release date: 2013-03-03 Download
⇒ Using commons-net.jar in Java Programs
⇐ What Is commons-net-ftp-2.0.jar
2015-06-03, 74888👍, 0💬
Popular Posts:
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...