input
stringlengths
10
828
output
stringlengths
5
107
public void set w double new value this w new value
w standard accessor
public void set x double new value this x new value
x standard accessor
public int get type return tag doc
return the type of tag
public void set y double new value this y new value
y standard accessor
public void set copies string new value this copies new value
copies standard accessor
public void set id string new value this id new value
id standard accessor
public string get srv instance id return srv instance id
srv instance id variable accesser
public void set method string new value this method new value
method standard accessor
public void set overlay list linked list new value this overlay list new value
overlay list standard accessor
public void set page range string new value this page range new value
page range standard accessor
public void set paper string new value this paper new value
paper standard accessor
public void set staple boolean new value this staple new value
staple standard accessor
public void set subparts string new value this subparts new value
subparts standard accessor
public int get type return tag stap
return the type of the tag
public void set order string new value this order new value
order standard accessor
public void write file java io random access file the file string the level throws bps exception try if get order equals start the file write bytes the level staple r n else the file write bytes the level staple r n catch ioexception e non epo code 04 04 2005 log exception line 64 throw new bps exception bps exception ...
write in a file
public string get file return file
file standard accessor
private void set ctlfile dtd url java lang string new ctlfile dtd url ctlfile dtd url new ctlfile dtd url
ctlfile dtd url standard accessor
public void set file string new value this file new value
file standard accessor
public void set format string new value this format new value
format standard accessor
public service status get status throws remote exception inc hits return service status ok
service status variable accesser
public string get level return level
level standard accessor
public void set level string new value this level new value
level standard accessor
public long get total hits throws remote exception inc hits return totalhits
totalhits variable accesser
public void set job error string new value this job error new value
job error standard accessor
public void set job name string new value this job name new value
job name standard accessor
public string get time return time
time standard accessor
public int get type return head sheet
return the type
public boolean get data return data
data standard accessor
public void set sub tag list xml sub tag list new value this sub tag list new value
sub tag list standard accessor
public void set time string new value this time new value
time standard accessor
public boolean get param return param
param standard accessor
public void set end tag string new value this end tag new value
end tag standard accessor
public void set param boolean new value this param new value
param standard accessor
public void set start tag string new value this start tag new value
start tag standard accessor
public string get pwd return pwd
pwd standard accessor
public service status get status throws service not available exception try non epo code 04 04 2005 log traces lines 69 70 return get status 0 finally non epo code 04 04 2005 log traces lines 74 75
get the status of the service
public void set host string new value this host new value
host standard accessor
public long get current load throws service not available exception try non epo code 04 04 2005 log traces lines 101 102 return get current load 0 finally non epo code 04 04 2005 log traces lines 106 107
get the current load of the service
public void set port string new value this port new value
port standard accessor
public long get total hits throws service not available exception try non epo code 04 04 2005 log traces lines 133 134 return get total hits 0 finally non epo code 04 04 2005 log traces lines 138 139
get the total hits of the service
public void set printer name string new value this printer name new value
printer name standard accessor
public void set pwd string new value this pwd new value
pwd standard accessor
public void set user string new value this user new value
user standard accessor
public string get service details throws service not available exception try non epo code 04 04 2005 log traces lines 165 166 return get service details 0 finally non epo code 04 04 2005 log traces lines 170 171
get the details of the service
public char get conv name return ascii2 tiff
get conv name method comment
public char get conv name return tiff2 pdf
return conversion name
public char get conv name return nullconv
get conv name method comment
public char get conv name return ascii2 pdf
get conv name method comment
public void close jbps session uid the session uid throws bps exception service not available exception try non epo code 04 04 2005 log traces lines 198 199 check opened session close jbps session the session uid 0 update the status of the session but proxy still available session opened false finally non epo code 04 0...
closes a session with the j bps service
public char get conv name return pdf2 ps
return conversion name
public properties get temp appdoc list properties the filters throws remote exception inc hits return null
gets back temporary appdocs list not implemented yet
public char get conv name return errconv
get conv name method comment
public char get conv name return ps2 tiff
return conversion name
public char get conv name return paj2 pdf
return the conversion name
public char get conv name return html2 tiff
get conv name method comment
public char get conv name return paj2 tiff
return the conversion name
public char get conv name return tiff2 ps
return conversion name
public string get version throws remote exception inc hits return get server version
gets back the server version
private void arraycopy hdr st33 int the addr src int the addr dest int the size if header st33 null system arraycopy header st33 the addr src header st33 the addr dest the size
copy of the st33 header
private void arraycopy value hdr st33 byte the source int the addr dest int the size if header st33 null system arraycopy the source 0 header st33 the addr dest the size
copy of binary values of the st33 header
private void arraycopy value hdr st33 string the source int the addr dest int the size byte my source the source get bytes arraycopy value hdr st33 my source the addr dest the size
copy of character values of the st33 header
private void delete file string the file name file my file new file the file name my file delete
delete of a file given its file name
public char get conv name return 0
get conv name method comment
public void set height int new value this height new value
height variable setter
public void set image length int new value this image length new value
image length variable setter
public string get date date my date new date simple date format my format date new simple date format yyyy mmdd return my format date format my date
gets back a formatted date with format yyyy mmdd
public void set nb ifdentry short new value this nb ifdentry new value
nb ifdentry variable setter
public void set resolution short new value this resolution new value
resolution variable setter
private string get emipage number string the doc id for int my cpt 0 my cpt get tag emi size my cpt if string get tag emi get my cpt substring 0 6 equals the doc id return string get tag emi get my cpt substring 6 return null
get the page number corresponding to a given emi
public void set width int new value this width new value
width variable setter
public void write table ifd random access file the tiff file throws bps exception byte short byte short to byte get nb ifdentry try the tiff file write short byte for int my cpt 0 my cpt get table ifd length my cpt the tiff file write get table ifd my cpt catch ioexception e non epo code 04 04 2005 log exception line 6...
write the ifd table in the tiff file
public void write tiff header random access file the tiff file throws bps exception if get tiff header null try the tiff file write get tiff header catch ioexception e non epo code 04 04 2005 log exception line 660 throw new bps exception bps exception err file access e get message
write tiff header in tiff file
public char get conv name return ps2 pdf
return conversion name
public boolean get is nt return is nt
is nt variable accesser
public char get conv name return pdf2 tiff
return conversion name
private long afm int the character if fonttype equals helvetica return long fontratio helv the character if fonttype equals courier return long fontratio 600 return 0
this method was created in visual age
public int get rec size return rec size
rec size variable accesser
private int ebc to i byte the buffer int the offset int the length internal variables byte my c int my int number 0 while the length 0 my c the buffer the offset if my c ebcdic sp my c ebcdic 0 else if my c ebcdic 0 my c ebcdic 9 my int number 1 break my int number 10 my int number my c ebcdic 0 return my int number
this method converts ebcdic string to an integer
public short get resolution return resolution
resolution variable accesser
private void euro date string the date internal variables byte my buffer null converting from string to byte array my buffer the date get bytes shift day my buffer 0 my buffer 6 my buffer 1 my buffer 7 shift year my buffer 6 my buffer 2 my buffer 7 my buffer 3 shift month my buffer 3 my buffer 4 my buffer 4 my buffer 5...
this method enables to swap date string from yyyymmdd to dd mm yy
public char get conv name return paj2 ps
return the conversion name
public tiff file get tiff image return tiff image
tiff image variable accesser
private void new yposition sax handler the handler random access file the ps target file double the shift init of new y position my yposition the shift testing position if my yposition imagey 2 linespace my image flag false if my yposition lowermargin try the ps target file write bytes nshowpage n the ps target file wr...
moves the current position down in the page
public short get tot num rec return tot num rec
tot num rec variable accesser
private void init header st33 for int my cpt 0 my cpt 252 my cpt header st33 my cpt byte
initialise the st33 header structure
private boolean is in the list string the doc id for int my cpt 0 my cpt get tag emi size my cpt if string get tag emi get my cpt substring 0 6 equals the doc id return true return false
searches for the doc id in the tag emi
private void load data random access file the input file throws bps exception byte my data new byte get rec size try the input file read my data set rec data my data catch ioexception e non epo code 04 04 2005 log exception line 688 throw new bps exception bps exception err file dest e get message
loads from input file into byte array the data of the doc
public string format tiff name int the number string my name new integer the number to string while my name length 8 my name 0 my name return my name
format the tiff name
public char get conv name return wipo2 thumb
return the conversion name
private void load data random access file the input file throws bps exception byte my data new byte get rec size try the input file read my data catch ioexception e non epo code 04 04 2005 log exception line 376 throw new bps exception bps exception err file access e get message set rec data my data
load data from the input file
public void set header st33 byte new value this header st33 new value
header st33 standard accessor
public void set is nt boolean new value this is nt new value
is nt standard accessor
public void set srv instance id string new srv instance id srv instance id new srv instance id
srv instance id variable setter
public void set tiff image tiff file new value this tiff image new value
tiff image standard accessor
public void set tot num rec short new value this tot num rec new value
tot num rec standard accessor
private void chg space field hdr st33 int the addr int the size char the char for int my cpt1 0 my cpt1 the size my cpt1 if header st33 the addr my cpt1 header st33 the addr my cpt1 byte the char
this method was created in visual age
private void set length image data short the size byte short byte new byte 2 short byte short to byte the size if get is nt short byte reverse data short byte arraycopy value hdr st33 short byte 250 2
computes and put in st33 header the size of the image data
private void set orig doc id hdr st33 string the doc id system arraycopy the doc id 0 get header st33 230 17
copies from doc id to the st33 header of the original document id
private void set rec length hdr st33 string the rec length arraycopy value hdr st33 the rec length 0 5
copies from header st33 of the length of the st33 record