Examples of inputStream()


Examples of ariba.ui.aribaweb.util.AWFileData.inputStream()

                }
                setValueForBinding(file, BindingNames.file);
            }
            else {
                if (parent().hasBinding(BindingNames.inputStream)) {
                    InputStream inputStream = fileData.inputStream();
                    setValueForBinding(inputStream, BindingNames.inputStream);
                }
                else if (parent().hasBinding(BindingNames.bytes)) {
                    byte[] byteArray = fileData.data();
                    setValueForBinding(byteArray, BindingNames.bytes);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

            if (scriptString == null) {
                AWResource resource = resourceManager().resourceNamed(scriptFileName);
                if (resource == null) {
                    throw new AWGenericException("Unable to locate script file named: " + scriptFileName);
                }
                InputStream scriptInputStream = resource.inputStream();
                scriptString = AWUtil.stringWithContentsOfInputStream(scriptInputStream);
                AWUtil.close(scriptInputStream);
                if (!AWConcreteApplication.IsRapidTurnaroundEnabled) {
                    ScriptFileHashtable.put(scriptFileName, scriptString);
                }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

            if (resource instanceof AWFileResource) {
                AWFileResource file = (AWFileResource)resource;
                response.setContentFromFile(file._fullPath());
            }
            else {
                ((AWBaseResponse)response).setContentFromStream(resource.inputStream());
            }
        }
        return response;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

                            }

                            allTemplates.add(instance.loadTemplate());
                        }
                        else {
                            InputStream inputStream = resource.inputStream();
                            String templateString = AWComponent.readTemplateString(inputStream);
                            logString("-Parsing " + relativePath);
                            AWTemplate template = AWComponent.defaultTemplateParser().templateFromString(templateString, relativePath);
                            allTemplates.add(template);
                        }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

        String value = null;
        String resourcePath = stringValueForBinding("resourcePath");
        if (resourcePath != null) {
            AWResource resource = resourceManager().resourceNamed(resourcePath);
            Assert.that(resource != null, "Unable to find resourcePath: %s", resourcePath);
            value = AWUtil.stringWithContentsOfInputStream(resource.inputStream());
        }

        if (value == null) value = stringValueForBinding(AWBindingNames.value);

        if (value == null) return value;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

            // to avoid certain caching issues with AWComponentReference.userData (see AWIncludeBlock's usage)
            // As such, we cannot use the resource.object() to store the template, although we can
            // use the hasChanged().
            AWResource resource = component.parentTemplateResource();
            if (_parentTemplate == null || resource.hasChanged()) {
                InputStream inputStream = resource.inputStream();
                _parentTemplate = component.parseTemplate(inputStream);
            }
        }
        return _parentTemplate;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

    }

    protected InputStream templateInputStream ()
    {
        AWResource templateResource = templateResource();
        return templateResource.inputStream();
    }

    protected AWTemplate parseTemplate (InputStream fileInputStream)
    {
        AWTemplate template = null;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

    private void registerStandardTagNames ()
    {
        AWResource resource = _application.resourceManager().resourceNamed("AWStandardTagNames.txt");
        if (resource != null) {
            InputStream inputStream = resource.inputStream();
            String standardTagNamesString = AWUtil.stringWithContentsOfInputStream(inputStream);
            AWUtil.close(inputStream);
            StringArray standardTagNames = AWUtil.componentsSeparatedByString(standardTagNamesString, ",");
            String[] standardTagNamesArray = standardTagNames.array();
            for (int index = (standardTagNames.inUse() - 1); index >= 0; index--) {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

    private void registerStandardTagNames ()
    {
        AWResource resource = _application.resourceManager().resourceNamed("AWStandardTagNames.txt");
        if (resource != null) {
            InputStream inputStream = resource.inputStream();
            String standardTagNamesString = AWUtil.stringWithContentsOfInputStream(inputStream);
            AWUtil.close(inputStream);
            StringArray standardTagNames = AWUtil.componentsSeparatedByString(standardTagNamesString, ",");
            String[] standardTagNamesArray = standardTagNames.array();
            for (int index = (standardTagNames.inUse() - 1); index >= 0; index--) {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.inputStream()

            _Currencies = MapUtil.map();
            // Todo: load currecies from CSV
            AWResource resource = AWConcreteServerApplication.sharedInstance().resourceManager().resourceNamed("ariba/ui/validation/currencies.csv");
            Assert.that(resource != null, "Can't find currencies.csv");

            InputStream in = resource.inputStream();
            // File format:
            // "ISO_CODE","ISO_NUMERIC","NAME","PREFIX","SUFFIX","CURRENCY_GROUP","SCALE","IS_SUPPORTED","ACTIVE_BEGIN_DATE","ACTIVE_END_DATE"
            try {
                CSVReader reader = new CSVReader(new CSVConsumer() {
                    public void consumeLineOfTokens (String path, int lineNumber, List line)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.