Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
c14fe7b6
Commit
c14fe7b6
authored
Jan 12, 2016
by
yannick legoc
Browse files
patch plugin applied
parent
3ba3ce58
Changes
3
Show whitespace changes
Inline
Side-by-side
src/fr/ill/ics/bridge/ResourceManager.java
View file @
c14fe7b6
...
...
@@ -42,6 +42,8 @@ public abstract class ResourceManager {
}
protected
abstract
void
init
();
public
abstract
String
[]
getResourceFilesByExtension
(
String
extension
);
public
abstract
byte
[]
getBinaryFileContent
(
String
controllerType
,
String
fileName
)
throws
ResourceNotFoundException
;
public
abstract
String
getFileContent
(
String
controllerType
,
String
fileName
)
throws
ResourceNotFoundException
;
public
abstract
void
setFileContent
(
String
controllerType
,
String
fileName
,
String
content
);
}
src/fr/ill/ics/nscclient/servant/CorbaResourceManager.java
View file @
c14fe7b6
...
...
@@ -44,6 +44,13 @@ public class CorbaResourceManager extends ResourceManager {
this
.
servantManager
=
ServerSessionManager
.
getInstance
(
serverId
).
getServantManager
();
}
public
String
[]
getResourceFilesByExtension
(
String
extension
)
{
return
servantManager
.
getResourceFilesByExtension
(
extension
);
}
public
byte
[]
getBinaryFileContent
(
String
controllerType
,
String
fileName
)
throws
ResourceNotFoundException
{
return
servantManager
.
readBinaryResourceFile
(
controllerType
,
fileName
);
}
public
String
getFileContent
(
String
controllerType
,
String
fileName
)
throws
ResourceNotFoundException
{
return
servantManager
.
readResourceFile
(
controllerType
,
fileName
);
...
...
src/fr/ill/ics/nscclient/servant/CorbaServantManager.java
View file @
c14fe7b6
...
...
@@ -503,6 +503,18 @@ public class CorbaServantManager {
}
public
String
[]
getResourceFilesByExtension
(
String
extension
)
{
return
servantManager
.
getResourceFilesByExtension
(
extension
);
}
public
byte
[]
readBinaryResourceFile
(
String
type
,
String
fileName
)
throws
ResourceNotFoundException
{
try
{
return
servantManager
.
readBinaryResourceFile
(
type
,
fileName
);
}
catch
(
NoSuchFileException
e
)
{
ResourceNotFoundException
fnfe
=
new
ResourceNotFoundException
(
fileName
);
throw
fnfe
;
}
}
public
String
readResourceFile
(
String
type
,
String
fileName
)
throws
ResourceNotFoundException
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment