"File" parameter in FilenameFilter

I've been trying to figure out the significance of the "File" parameter in FilenameFilter:
public interface FilenameFilter{
    public boolean accept(File dir, String name)
}I've already done some search online and looked up some examples. But still it hasn't dawned upon me.
Someone mentioned its utility had something to with recursion. But then shouldn't all the directory and file location issues be handled by the caller of the accept() method? Sorry but this question keeps bugging me.
Thanks!

Thanks for your reply. But how so? Examples I've seen so far don't even use this parameter at all? Could you maybe give me a few lines of pseudo-code?

Similar Messages

  • {"success":false,"msg":"package file parameter missing"} while trying to upload a package via python

    Hello,
    I try to write a command line script for administrating CQ5 via command line not using curl or wget. When I try to upload a package I get the following error message: {"success":false,"msg":"package file parameter missing"} So what parameter (sure "file") is missing or how do I have to "put it in"?
    To be more precise:
    When using curl, everything works fine, so I looked at the header and body curl sends and rebuilt both via python - without success. And curl does not send a "file" parameter by the way, or I didn't see it.
    Best regards,
    Rene

    For RMA Line. I am assuming you have already created a 'RETURN' type transaction Type, and tied that to the AR transaction type. if yes, then just follow the COPY UTILITY to copy the original line into a RMA line using the Copy Utility as below. Let me know if that was helpful.
    debug_message('Start Copying order..');
    l_copy_rec.api_version_number := 1;
    l_copy_rec.init_msg_list := 'T';
    l_copy_rec.COMMIT := 'T';
    l_copy_rec.Copy_Order := 'T';
    l_copy_rec.hdr_count := 1;
    l_copy_rec.append_to_header_id:= NULL;
    l_copy_rec.hdr_info := 'T';
    l_copy_rec.hdr_type := l_refund_order_type_id;
    l_copy_rec.hdr_descflex := 'T'; -- changed to 'T'; Dipanjan; 03/06/2012
    l_copy_rec.hdr_credit_card_details := 'F';
    l_copy_rec.hdr_scredits := 'T';
    l_copy_rec.hdr_attchmnts := 'T';
    l_copy_rec.hdr_holds := 'F';
    l_copy_rec.manual_order_number:= NULL;
    l_copy_rec.all_lines := 'F';
    l_copy_rec.line_count := l_line_ids.count;
    l_copy_rec.line_type :=&l_refund_line_type_id; -- replace with the 'Return' type transaction type Id
    l_copy_rec.incl_cancelled := 'T';
    l_copy_rec.line_price_mode := 1;
    --l_copy_rec.line_price_date := NULL;
    -- l_copy_rec.line_discount_id := NULL;
    l_copy_rec.line_descflex := 'T';
    l_copy_rec.line_scredits := 'F';
    l_copy_rec.line_attchmnts := 'T';
    l_copy_rec.line_payments := 'T';
    l_copy_rec.return_reason_code := 'WRONG ITEM';
    l_copy_rec.default_null_values:= 'F';
    l_copy_rec.copy_complete_config := 'T';
    l_header_id(1).id1 := &l_orig_header_id;--- replace with original header Id
    Oe_order_copy_util.copy_order( p_copy_rec => l_copy_rec
    ,p_hdr_id_tbl => l_header_id
    ,p_line_id_tbl => l_line_ids
    ,x_header_id => l_query_header_id
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data);
    debug_message('End Copying order..');

  • Need a File Parameter with Browse Functionality in ABAP

    Hi
    I Need a File Parameter with Browse Functionality in ABAP.
    Can anyone help me with logic.
    Regards,
    Sree

    Check below code:
    PARAMETERS: p_file TYPE localfile.
    DATA: l_path TYPE string,
          l_fpath TYPE string,
          l_fname TYPE string.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title         = 'Save to...'
          default_extension    = '.txt'
          initial_directory    = 'C:\'
        CHANGING
          filename             = l_fname
          path                 = l_path
          fullpath             = l_fpath
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc EQ 0.
        MOVE l_fpath TO p_file.
      ENDIF.

  • Init.ora file parameter 'processses' not working

    When I change the number of processes in my init.ora file from the default of 30 to 200, I get an error when accessing from SQLPlus that Oracle cannot be found. I run Oracle 8.1.6i on a Solaris v7 platform. Any suggestions???

    I think your database could not "be found"
    'cause it isn't up.
    Change the init.ora file parameter 'processses' to 'processes' and restart
    the database.
    Oracle refuses starting up, if there are
    mistyped parameters in init<SID>.ora.
    C.Scholten

  • How can I organize the library under a "date of creation" file parameter?

    Does anybody know if there is a way to arrange the iTunes library so that it shows up in the iTunes window with its songs organized with a “date of creation” of the file parameter? Among the “view options” there is a “date added” and “date modified” but no “date created” option. Thanks.

    Yes, iTunes will "add" the file at the same time it "creates" it. In the event that for some
    reason the library files are deleted or you reinstall OS X and therefore iTunes, then you will
    encounter this problem. When you "add" the ripped music files that were stored in a
    separate music-dedicated hard drive, these will indeed appear in the library as being
    "added" that same day. I have a fairly large ripped CD collection that I started to "create" 8
    years ago (first with Sound Jam and then with iTunes) and I got used to searching the music
    in the library knowing that the files that were "created" 8 years ago were at the beginning
    of the list and so on. When I moved from Sound Jam to iTunes in OS 9 and then to iTunes in
    OS X I remember that somehow the "Date" option showed the files in the library in the same
    exact order they had been "created".
    Although I could delete all the songs from the library and then add each ripped file from
    the iTunes Music folder back again into the library in the same order as it was "created", I
    am looking for a less time consuming way of doing this.
    When you click once on any file of any kind in the computer and then "Get Info", among the
    information provided are "size", "created", and "modified". iTunes has included "modified"
    and "size" among others but not "created" in the "View Options". I assume this is not because it is difficult to include but perhaps Apple does not find this option worthwhile.

  • Passing a file parameter to Java from C

    Hi everyone
    I am writing a dll which calls some java methods. One of these methods takes a File parameter. The lookup of the method id is successful, but I do not know how to convert the pFile pointer ( initailised by fopen() ) into a jobject reference. I can't find any examples inthe documentation and forums. Can anyone help?
    thanks
                   /* get the required method*/                                    
                   id = env->GetMethodID(cls, methodName, "(Ljava/io/File;)I");  
                   if (id == 0)
                   fprintf(stderr, "Can't find method\n");
                   return(FAIL);
              /* File parameter, int return type */
              /* cast param to the correct type  */
              jobject fileParam = (jobject)pFile;    
                   /*  !!!      Does not work, Java throws a null pointer exception  */
              /* call the java method  */
              result = env->CallIntMethod(objLCM, id, fileParam);

    of the method id is successful, but I do not know how
    to convert the pFile pointer ( initailised by
    fopen() ) into a jobject reference. I can't find anyYou can't do this. It is not possible. Beyond that, your file pointer is probably a result of calling fopen(...) or something, right? the java object File is just a reference to a resource, not an open, readable/writable resource. You can think of it sort of like a URL.
    Best thing to do to try to spoof this might be to create an intermediate layer in java that takes the file name from C and converts it into a File. If you need to write to the file, you're going to need an outputstream or a Writer object, which is a whole different mess
    good luck

  • How to check the contents of Control file, Log file & Parameter file

    Can anybody help me how i can check the contents of Control file, Log file & Parameter file.
    Arif

    OK ...
    Parameter file:
    It will normally be in the $ORACLE_HOME/dbs directopry. It could be aan init{sid}.ora or a spfile{sid}.ora ... do not edit an SPFILE as yu could corrupt it.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref434
    If it's an init{sid}.ora, use any editor to see the actual content.
    If it's a spfile{sid}.ora, use one of V$PARAMETER, V$PARAMETER2, V$SYSTEM_PARAMETER, V$SYSTEM_PARAMETER2 as aappropriate (read the Reference manual to get an idea about when each is appropriate)
    Control File:
    You should not edit a control file. It consists of many areas, as described here http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#i10135 and each are is interrogated by V$views as given in the reference manual. The following V$views all deal with some aspect of the control file or provide info about the control files or the contents of control files:
    V$ARCHIVE_DEST
    V$ARCHIVED_LOG
    V$BACKUP_ARCHIVELOG_DETAILS
    V$BACKUP_CONTROLFILE_DETAILS
    V$BACKUP_CONTROLFILE_SUMMARY
    V$BACKUP_COPY_DETAILS
    V$BACKUP_COPY_SUMMARY
    V$BACKUP_CORRUPTION
    V$BACKUP_DATAFILE
    V$BACKUP_DATAFILE_DETAILS
    V$BACKUP_FILES
    V$BACKUP_PIECE
    V$BACKUP_REDOLOG
    V$BACKUP_SET
    V$BACKUP_SET_DETAILS
    V$BACKUP_SPFILE
    V$CONTROLFILE
    V$CONTROLFILE_RECORD_SECTION
    V$COPY_CORRUPTION
    V$DATABASE
    V$DATABASE_INCARNATION
    V$DATAFILE
    V$DATAFILE_COPY
    V$DATAFILE_HEADER
    V$DELETED_OBJECT
    V$LOCK
    V$LOG
    V$LOG_HISTORY
    V$LOGHIST
    V$OBSOLETE_BACKUP_FILES
    V$OFFLINE_RANGE
    V$PROXY_COPY_DETAILS
    V$PROXY_COPY_SUMMARY
    V$PROXY_DATAFILE
    V$RMAN_BACKUP_JOB_DETAILS
    V$RMAN_BACKUP_SUBJOB_DETAILS
    V$RMAN_CONFIGURATION
    V$SESSION
    V$TABLESPACE
    V$THREAD
    V$UNUSABLE_BACKUPFILE_DETAILS
    3) Log Files
    The contents of the log files are viewed using LogMiner - read Chapter 11 of the Oracle Utilities manual

  • Conversion of batch file parameter to varchar2

    Hello, I currently have a batch file that accepts a parameter: login/password@database.
    The way i assign it in the batch file is as follows:
    %1 parameter login/password@database
    The batch file then calls sqlplus to run a script, called test.sql, it passes the %1 parameter to the test.sql script. The call from the batch file looks as follows:
    sqlplus %1 <test.sql> %1
    where test.sql is the location of the script.
    The problem arises when i try to assign the %1 parameter which is equal to say, johndoe/doe@database, to a varchar2 variable in the pl/sql anonymous block.
    Here is how that assignment looks:
    declare
    login varchar2(50);
    begin
    login := %1;
    end;
    The error i recieve is:
    invalid indentifer 'johndoe' must be declared.
    I was thinking to solve this problem all i need to do is change it to a character datatype, however, when i try TO_CHAR or using concatenation using the '||' operator
    they do not work.
    Does anyone have any ideas<QUESTION MARK>
    Thanks.

    Hello
    try to put the %1 variable in single quotes like
    login := '%1';

  • RACF Standard connector "LookupField Target File" parameter

    Hi!
    I'm configuring RACF Standard connector (Release 9.0.4.12). and im not an expert in RACF so i need some specification regarding the file used as parameter "LookupField Target File" in the " Scheduled Tasks for Lookup Field Synchronization". In other words i need to know if the file to be created into RACF must be like SYSTMDAT , which has a length 80 and record format Fixed Block. Or it must be Variable Blocked?.
    Thanks and Regards.

    Well this file InitialLoginSequence.txt contains all the commands in a proper sequence which is equivalent to opening a emulator window in the interactive mode. So for example:
    1) When I open the window first, I see the following prompt -> *@@@@* & it waits for a Application Name
    Hence the first text in my file would be Wait(@@@@);
    & for your case, this is not true, so you can skip it.
    2) Then I need to pass in application Name. so lets say xyz
    Hence the string to be followed would be *Send(xyz[enter]);*
    3) Then I wait for the prompt to throw next question. Let's say it shows ENTER USERID.
    Now, the string would be Wait(ENTER USERID);
    4) Then I enter my User ID.i.e. *Send(myuserid[enter]);*
    5) Then Prompt Password.i.e. *Wait(Password);Sendmask(${Password}[enter]);* and so on.
    For your case what do you see as prompt after the company Logo. That would be your first string. If it is Userid then try to do like below:
    Wait(Userid);Send(myracfuser[Enter]);Wait(Password);Sendmask(${mypassword}[enter]);Wait(Command ===>);Send(TSO50[Enter]);Wait(IKJ56700A ENTER USERID);Send(myracfuser[Enter]);Wait(Password===>);Sendmask(${mypassword}[enter]);Wait(***)
    Thanks
    SRS

  • SQL Server 2014 Express extract file parameter?

    I am working to bundle SQL Server 2014 Express with an application.  I am using the following command line to install via an InstallShield prerequisite:  /qs /INSTANCENAME=MYINSTANCE /ACTION="Install" /FEATURES=SQLEngine,Conn,SSMS
    /SECURITYMODE=SQL /SAPWD="Password" /TCPENABLED=1 /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /IACCEPTSQLSERVERLICENSETERMS
    The installer I am using is SQLEXPRWT_x86_ENU.exe.
    When the installer starts up their is a dialog named:  Choose Directory for Extract Files.  In earlier versions of SQL Server Express this dialog did not require the user to press Ok to continue.  Since it takes several minutes to install
    SQL Server Express I prefer to show the installation to the user, so they can see that something is taking place.  The /q (Quiet) parameter will suppress this dialog, but nothing is seen for several minutes.  Note:  the Installer documentation
    does state that:  The /QS switch only shows progress, does not accept any input, and displays no error messages if encountered. The /QS parameter is only supported when /Action=install is specified.  Consequently, I believe the /QS parameter
    should not be requiring input.
    All that for these questions:
    1) Is there away to suppress this dialog while still using the /qs (Quiet Simple) parameter.
    2) Is there a parameter to tell the installer to extract the files to a specified location?
    Thanks,
    Les

    Hi,
    After you download the installation package of SQL Server Express 2014, and extracts it to the specified location, the dialog of “Choose Directory for Extract Files” will appear when you install the SQL Server Express. Usually, we need to use the following
    steps to extract the setup files to a temporary location.
    1.In the Command Prompt window type %USERPROFILE%\Downloads\ SQLEXPRWT_x86_ENU.exe /x
    2.When prompted to Choose Directory For Extracted Files type C:\SQLEXPR and click OK to extract the files.
    Or suppress the dialog to extract the right location in SQL Server Express 2008 or other lower version. Such as
    c:\temp>SQLEXPRWT_x64_ENU.exe /extract: "c:\temp".
    However, in SQL Server Express 2014, I do a test, we could not suppress the dialog or use the parameters directly to extract in command line. For more information about
    installing SQL Server 2014 from the Command Prompt, you can review the following article.
    http://msdn.microsoft.com/en-us/library/ms144259.aspx
    If necessary, personally, I recommend you can provide Microsoft a feature request at
    https://connect.microsoft.com/SQLServer so that we can try to modify and expand the product features based on your needs.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to increase number of data files parameter

    Dear All,
    I am facing problem in increasing number of data files associated with the DB. I have DB_FILES = 200 and want to set it to 300. DB was started with SPFILE.
    Tell me how to increase this parameter. I dont want to stop DB also. I will be thankful if anyone guide me in both ways to stop DB and without stopping it.
    Regards
    Aqeel Nawaz

    Madrid,
    Please don't take it as nit-picking.Just wanted to point an enhancement in 10g regarding recreating control file for increasing number of datafiles.I am sure you must be aware about it.
    Please see this link and this note,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#sthref1340
    When you issue CREATE DATABASE or CREATE CONTROLFILE statements, the MAXDATAFILES parameter specifies an initial size of the datafile portion of the control file. However, if you attempt to add a new file whose number is greater than MAXDATAFILES, but less than or equal to DB_FILES, the control file will expand automatically so that the datafiles section can accommodate more files.
    From 10g onwards,the requirement to recreate teh control file is lifted.
    Please correct me if I interpreted the note in a wrong way.
    Regards
    Aman....

  • Setting Log file parameter

    Hi,
    I need to restrict the number of log files created. Where do i set the max number of log files(which parameter to modify) that will be created before the log files start rolling....??
    Thanks

    BAM creates the log files 1 per day, All messages from all restarts, stops, etc and details are logged into the log file within a single file. The file is renamed with yyy_mm_dd when it is rotated the next time or next day. Some controls for log file are provided in the ***.exe.config file in the c:\oraclebam\bam directory.

  • Jnlp file parameter element problem

    Hello all,
    I have a jar file which contains all the class files and an configuration file of type(.cfg).
    For my application to run properly i need to pass this .cfg file as an argument to the main method in one of the file in the jar...
    i did pass the name of the file as one of the parameter element,but my application is not initialized and not working.but the jar files have been deployed in the local machine.
    so my question is , is there a way so that i can pass my file as a parameter to the main method through jnlp xml file.

    thanks andrew,
    but my problem is that i need to pass the path of my file along with the name of the file to the main method ...and in turn my main method will do all the required processing work..
    the jar file that is to be deployed contains the class files and the .cfg file..
    my jnlp files looks as follows:-
    <jnlp spec="1.0+" codebase="$$codebase" href="voicechat.jnlp">
    <information>
    <title>SIP Based Voice Chat</title>
    <vendor>First Internet Systems Pvt Ltd</vendor>
    <description>Voice Chat</description>
    <description kind="short">Voice Chat </description>
    <icon href="images/demologo.gif"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="sip.jar"/>
    <jar href="ua.jar"/>
    </resources>
    <application-desc main-class="local.ua.GraphicalUA">
    <argument>-f</argument>
    <argument>a.cfg</argument>
    </application-desc>
    </jnlp>
    the second argument that i had passed is the name of the file in the jar to be passed..
    but as a result when i invoke this file, the jar files are deployed but application is not starting as expected..for it to work the file and its path has to be passed to the main method..
    which is what i tried through argument element...but it does not seem to work..
    so all that i need to know is that, is it possible to pass a file and its path as an argument in the jnlp file..

  • InitSID.ora file parameter

    Hi ,
       We using ECC 6.0 with Oracle 10.2.0.2 , we need to change the parameter db_cache_sie from 294 mb to 1 gb , So i edit the file and change the parameter . Then i restart the system . After restart the system i checked the parameter it will changed to 1gb . But today i just checked the parameter , it will show the old parameter 294 mb .
    So kindly tell me what is happening and tell me the solution to change the parameter .
    Regards
    Selvan

    Hi ,
        Oracle 10g always use spfile for the purpose of maintaining database parameters .So you want to make any changes then first you need to create pfile from spfile because you cannot make changes directly in spfile as its not recommended by oracle.
      So first change pfile from spfile by givind command create pfile from spfile via sql prompt .Then modify the parameter in pfile & again give command create spfile from pfile & restart your databse to make the changes effective.
    Or the best solution to change the database parameter is to change via sql prompt prompt eg::
    alter system set <parameter>=<value>  scope=spfile
    Thanks..
    Mohit

  • Dynamic file parameter with include directive

    I would like to include the file path contained in a string variable with the include directive.
    I'm trying to do the following:
    <%
    String var_fileToInclude = "inc/topnav_" + var_sectionType + ".jsp";
    include file=var_fileToInclude;
    %>
    I get the following error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the jsp file: /news/special_reports/climate/inc/topnav_includer.jsp
    include cannot be resolved to a type
    3: String var_fileToInclude = "inc/topnav_" + var_sectionType + ".jsp";
    4: out.println( "var_fileToInclude = " + var_fileToInclude );
    5:
    6: include file=var_fileToInclude;
    7:
    8: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    Any help is greatly appreciated.
    -- Ryan Chapin

    hello,
    Are you able to print the file name. if you are able to print the file name properly then try to include the file as below
    <jsp:include page="<%=filevariablenema%>" flush="true" />
    I hope this will help. Let me know on the same.
    Thanks
    Suresh

Maybe you are looking for

  • How to change font in multiple form fields?

    I am creating a form - there are about 2 dozen form fields that are set up. I had Acrobat detect form fields. Is there a way I can select multiple form fields and change the font in all of them? I have tried selecting all the fields [cmd A] and doubl

  • LR4 problem or PS problem?

    When I export an image from LR4 to Bridge for final retouching in PSE9 (as a 16-bit PSD file), the file doesn't show a thumbnail image on Bridge, only static. I can call it up, do editing and change it to 8-bit, but when I try to save it, I get this

  • Tecra 9100: Dying motherboard/HDD

    I have been experiencing intermittant problems with my 9100 for about two weeks. The latest symptoms are: 1. I/O Channel message when switching on. 2. If I get into boot sequence the PC hangs, 3. If I manage to start Windows (2k) it promptly craches

  • SYS.SYSNTJ6LP..... table names in Oracle 10g R2 database

    Can anyone inform me as to what / where the following tables came from - and also why a developer would us == in a table name? SYS.SYSNTJ6LPx94kVxXgRAAAAAAAAA== SYS.SYSNTJ6LPx94mVxXgRAAAAAAAAA== SYS.SYSNTJ6LPx94oVxXgRAAAAAAAAA== Thank you in advance,

  • Display tweets in AIR for Android app. How ?

    Hello, Can i display my tweets in flash using AS3 and How ?! Regards,