Package com.ibm.as400.access

Examples of com.ibm.as400.access.IFSFileInputStream


     * @return the default connection pool used by this component
     */
    public synchronized AS400ConnectionPool getConnectionPool() {
        if (connectionPool == null) {
            LOG.info("Instantiating the default connection pool ...");
            connectionPool = new AS400ConnectionPool();
        }
        return connectionPool;
    }
View Full Code Here


            // XXX Actually, returns any field length, not just output.
            int length = getISeriesEndpoint().getOutputFieldLength(i);

            if (input) {
                if (param != null) {
                    AS400DataType typeConverter;
                    if (getISeriesEndpoint().getFormat() == Format.binary) {
                        typeConverter = new AS400ByteArray(length);
                    } else {
                        typeConverter = new AS400Text(length, iSeries);
                    }
                    inputData = typeConverter.toBytes(param);
                }
                // Else, inputData will remain null.
            }

            if (input && output) {
View Full Code Here

            byte[] output = pgmParam.getOutputData();
            Object javaValue = params[i - 1];

            if (output != null) {
                int length = pgmParam.getOutputDataLength();
                AS400DataType typeConverter;
                if (getISeriesEndpoint().getFormat() == Format.binary) {
                    typeConverter = new AS400ByteArray(length);
                } else {
                    typeConverter = new AS400Text(length, iSeries);
                }
                javaValue = typeConverter.toObject(output);
            }

            results.add(javaValue);
            i++;
        }
View Full Code Here

          "StringTransformer", stringTransformer);
      mTransformer = (LineTransformer) ReflectionSupport
          .createObject(transformerClassName);
    }

    AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
        mAS400System, mQSYSObject.getPath());
    // Set record format of the file.
    RecordFormat[] format;
    try
    {
      format = recordDescription.retrieveRecordFormat();
      mOriginFile.setRecordFormat(format[0]);
      // Open the file.
      mOriginFile.open(AS400File.READ_WRITE, 0,
          AS400File.COMMIT_LOCK_LEVEL_NONE);
    }
View Full Code Here

        // initiate the SequentialFile object
        mOriginFile = new SequentialFile(mAS400System, mQSYSobjPathname
            .getPath());

        // Retreive and set an record format of the file.
        AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
            mAS400System, mQSYSobjPathname.getPath());
        RecordFormat[] formatArr = recordDescription
            .retrieveRecordFormat();
        RecordFormat format = formatArr[0];

        mOriginFile.setRecordFormat(format);
View Full Code Here

   */
  protected Object getRequestContent() throws XException
  {
    ByteArrayList retBuffer = new ByteArrayList();

    AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
        mAS400System, mQSYSObject.getPath());

    try
    {
      // Set record format of the file.
      RecordFormat[] format = recordDescription.retrieveRecordFormat();
      mOriginFile.setRecordFormat(format[0]);

      // Open the file.
      mOriginFile.open(AS400File.READ_WRITE, 0,
          AS400File.COMMIT_LOCK_LEVEL_NONE);
View Full Code Here

   */
  private String readFile() throws XException
  {
    StringBuffer retBuffer = new StringBuffer();

    AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
        mAS400System, mQSYSObject.getPath());

    try
    {
      // Set record format of the file.
      RecordFormat[] format = recordDescription.retrieveRecordFormat();
      mOriginFile.setRecordFormat(format[0]);

      // Open the file.
      mOriginFile.open(AS400File.READ_WRITE, 0,
          AS400File.COMMIT_LOCK_LEVEL_NONE);
View Full Code Here

            byte[] inputData = null;
            int outputLength = -1;
            if (input) {
                String value = (String) param;
                inputData = new AS400Text(getISeriesEndpoint().getOutputFieldLength(i)).toBytes(value);
            }
            if (output) {
                outputLength = getISeriesEndpoint().getOutputFieldLength(i);
            }
View Full Code Here

            String value = params[i - 1];

            if (output != null) {
                int length = pgmParam.getOutputDataLength();

                AS400Text text = new AS400Text(length);
                value = (String) text.toObject(output);
            }

            results.add(value);
            i++;
        }
View Full Code Here

            byte[] inputData = null;
            int outputLength = -1;
            if (input) {
                String value = (String) param;
                inputData = new AS400Text(value.length()).toBytes(value);
            }
            if (output) {
                outputLength = getISeriesEndpoint().getOutputFieldLength(i);
            }
View Full Code Here

TOP

Related Classes of com.ibm.as400.access.IFSFileInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.