@Override
    protected FileInfo getFileInfoFromInputDataImpl(HTTPRequest inputData)
    {
        //get content
        Map<String,ContentPart<?>> contentPartsMap=this.getContentPartsAsMap(inputData);

        //get file info
        FileInfo fileInfo=null;
        ContentPart<?> contentPart=contentPartsMap.get(this.fileContentParameter);
        if(contentPart==null)
        {
            throw new FaxException("File info not provided.");
        }
        ContentPartType contentPartType=contentPart.getType();
        switch(contentPartType)
        {
            case FILE:
                File file=(File)contentPart.getContent();
                fileInfo=new FileInfo(file);
                break;
            case BINARY:
                byte[] data=(byte[])contentPart.getContent();

                //get file name
                String fileName=this.getContentPartAsString(contentPartsMap,this.fileNameParameter);

                fileInfo=new FileInfo(fileName,data);
                break;
            default:
                throw new FaxException("Unsupported content part type: "+contentPartType);
        }

        return fileInfo;
    }
@ Override protected FileInfo getFileInfoFromInputDataImpl ( HTTPRequest inputData ) { Map < String , ContentPart < ? > > contentPartsMap = this . getContentPartsAsMap ( inputData ) ; FileInfo fileInfo = null ; ContentPart < ? > contentPart = contentPartsMap . get ( this . fileContentParameter ) ; if ( contentPart == null ) { throw new FaxException ( "File info not provided." ) ; } ContentPartType contentPartType = contentPart . getType ( ) ; switch ( contentPartType ) { case FILE : File file = ( File ) contentPart . getContent ( ) ; fileInfo = new FileInfo ( file ) ; break ; case BINARY : byte [ ] data = ( byte [ ] ) contentPart . getContent ( ) ; String fileName = this . getContentPartAsString ( contentPartsMap , this . fileNameParameter ) ; fileInfo = new FileInfo ( fileName , data ) ; break ; default : throw new FaxException ( "Unsupported content part type: " + contentPartType ) ; } return fileInfo ; }
This function returns the file info from the request data.

@param   inputData
The input data
@return  The file info